![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <vector.h>
Public Member Functions | |
OwnedVector ()=default | |
OwnedVector (std::unique_ptr< T[]> data, size_t length) | |
OwnedVector (const OwnedVector &)=delete | |
OwnedVector & | operator= (const OwnedVector &)=delete |
template<typename U > requires std::is_convertible_v<std::unique_ptr<U>, std::unique_ptr<T>> | |
OwnedVector (OwnedVector< U > &&other) V8_NOEXCEPT | |
template<typename U > requires std::is_convertible_v<std::unique_ptr<U>, std::unique_ptr<T>> | |
OwnedVector & | operator= (OwnedVector< U > &&other) V8_NOEXCEPT |
constexpr size_t | size () const |
constexpr bool | empty () const |
constexpr T * | begin () const |
constexpr T * | end () const |
constexpr T * | data () const |
constexpr std::reverse_iterator< T * > | rbegin () const |
constexpr std::reverse_iterator< T * > | rend () const |
T & | operator[] (size_t index) const |
Vector< T > | as_vector () const |
std::unique_ptr< T[]> | ReleaseData () |
bool | operator== (std::nullptr_t) const |
bool | operator!= (std::nullptr_t) const |
Static Public Member Functions | |
static OwnedVector< T > | New (size_t size) |
static OwnedVector< T > | NewForOverwrite (size_t size) |
template<typename U > | |
static OwnedVector< U > | NewByCopying (const U *data, size_t size) |
Private Attributes | |
std::unique_ptr< T[]> | data_ |
size_t | length_ = 0 |
Friends | |
template<typename U > | |
class | OwnedVector |
|
default |
|
inline |
|
delete |
|
inline |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inlineconstexpr |
|
inline |
|
inlineconstexpr |
|
inlineconstexpr |
|
private |
|
private |