#include <vector.hpp>
|
CUDA NI | vector (size_t n, const allocator_type &alloc=allocator_type()) |
|
CUDA | vector (const allocator_type &alloc=allocator_type{}) |
|
template<class U > |
CUDA NI | vector (const U *from, size_t n, const allocator_type &alloc=allocator_type{}) |
|
template<class U , class Allocator2 > |
CUDA | vector (const vector< U, Allocator2 > &from, const allocator_type &alloc=allocator_type{}) |
|
template<class U > |
CUDA | vector (const vector< U, allocator_type > &from) |
|
CUDA | vector (const this_type &from) |
|
template<class U > |
CUDA NI | vector (size_t n, const U &from, const allocator_type &alloc=allocator_type{}) |
|
CUDA NI | vector (this_type &&other) |
|
CUDA NI | vector (std::initializer_list< T > init, const allocator_type &alloc=allocator_type{}) |
|
template<class U , class Alloc2 > |
| vector (const std::vector< U, Alloc2 > &other, const allocator_type &alloc=allocator_type{}) |
|
CUDA NI | ~vector () |
|
CUDA this_type & | operator= (this_type &&other) |
|
CUDA NI this_type & | operator= (const this_type &other) |
|
template<class U , class Allocator2 > |
CUDA NI this_type & | operator= (const vector< U, Allocator2 > &other) |
|
CUDA allocator_type | get_allocator () const |
|
CUDA value_type & | operator[] (size_t i) |
|
CUDA const value_type & | operator[] (size_t i) const |
|
CUDA value_type & | front () |
|
CUDA const value_type & | front () const |
|
CUDA value_type & | back () |
|
CUDA const value_type & | back () const |
|
CUDA value_type * | data () |
|
CUDA const value_type * | data () const |
|
CUDA bool | empty () const |
|
CUDA size_t | size () const |
|
CUDA void | reserve (size_t new_cap) |
|
CUDA size_t | capacity () const |
|
CUDA void | shrink_to_fit () |
|
CUDA NI void | clear () |
|
CUDA void | push_back (const T &value) |
|
CUDA void | push_back (T &&value) |
|
template<class... Args> |
CUDA value_type & | emplace_back (Args &&... args) |
|
CUDA void | pop_back () |
|
CUDA NI void | resize (size_t count) |
|
CUDA void | swap (this_type &other) |
|
CUDA NI void | print () const |
|
|
template<class T2 , class Allocator2 > |
class | vector |
|
◆ value_type
template<class T , class Allocator = standard_allocator>
◆ allocator_type
template<class T , class Allocator = standard_allocator>
◆ this_type
template<class T , class Allocator = standard_allocator>
◆ vector() [1/10]
template<class T , class Allocator = standard_allocator>
Allocate an array of size n
using allocator
, with n
default-inserted instances of T
. Allocator
is scoped, meaning it will be passed to the constructor of T
if T(const Allocator&)
exists, otherwise T()
is called.
◆ vector() [2/10]
template<class T , class Allocator = standard_allocator>
◆ vector() [3/10]
template<class T , class Allocator = standard_allocator>
template<class U >
Allocate an array of size n
using allocator
. Initialize the elements of the array with those of the array from
. Allocator
is scoped, meaning it will be passed to the constructor of T
if T(const T&, const Allocator&)
exists, otherwise T(const T&)
is called.
◆ vector() [4/10]
template<class T , class Allocator = standard_allocator>
template<class U , class Allocator2 >
Copy constructor with an allocator, useful when the vector we copied from was declared using another allocator.
◆ vector() [5/10]
template<class T , class Allocator = standard_allocator>
template<class U >
Copy constructor with different underlying types.
◆ vector() [6/10]
template<class T , class Allocator = standard_allocator>
Redefine the copy constructor to be sure it calls a constructor with an allocator.
◆ vector() [7/10]
template<class T , class Allocator = standard_allocator>
template<class U >
Initialize of an array of size n
with each element initialized to from
using allocator
. Allocator
is scoped, meaning it will be passed to the constructor of T
if T(const T&, const Allocator&)
exists, otherwise T(const T&)
is called.
◆ vector() [8/10]
template<class T , class Allocator = standard_allocator>
◆ vector() [9/10]
template<class T , class Allocator = standard_allocator>
◆ vector() [10/10]
template<class T , class Allocator = standard_allocator>
template<class U , class Alloc2 >
◆ ~vector()
template<class T , class Allocator = standard_allocator>
◆ operator=() [1/3]
template<class T , class Allocator = standard_allocator>
◆ operator=() [2/3]
template<class T , class Allocator = standard_allocator>
◆ operator=() [3/3]
template<class T , class Allocator = standard_allocator>
template<class U , class Allocator2 >
Beware that this operator does not free the memory of this
, the capacity remains unchanged.
◆ get_allocator()
template<class T , class Allocator = standard_allocator>
◆ operator[]() [1/2]
template<class T , class Allocator = standard_allocator>
◆ operator[]() [2/2]
template<class T , class Allocator = standard_allocator>
◆ front() [1/2]
template<class T , class Allocator = standard_allocator>
◆ front() [2/2]
template<class T , class Allocator = standard_allocator>
◆ back() [1/2]
template<class T , class Allocator = standard_allocator>
◆ back() [2/2]
template<class T , class Allocator = standard_allocator>
◆ data() [1/2]
template<class T , class Allocator = standard_allocator>
◆ data() [2/2]
template<class T , class Allocator = standard_allocator>
◆ empty()
template<class T , class Allocator = standard_allocator>
◆ size()
template<class T , class Allocator = standard_allocator>
◆ reserve()
template<class T , class Allocator = standard_allocator>
◆ capacity()
template<class T , class Allocator = standard_allocator>
◆ shrink_to_fit()
template<class T , class Allocator = standard_allocator>
◆ clear()
template<class T , class Allocator = standard_allocator>
◆ push_back() [1/2]
template<class T , class Allocator = standard_allocator>
◆ push_back() [2/2]
template<class T , class Allocator = standard_allocator>
◆ emplace_back()
template<class T , class Allocator = standard_allocator>
template<class... Args>
◆ pop_back()
template<class T , class Allocator = standard_allocator>
◆ resize()
template<class T , class Allocator = standard_allocator>
◆ swap()
template<class T , class Allocator = standard_allocator>
◆ print()
template<class T , class Allocator = standard_allocator>
◆ vector
template<class T , class Allocator = standard_allocator>
template<class T2 , class Allocator2 >
The documentation for this class was generated from the following file: