이름공간
변수
행위

std::dynarray

cppreference.com
< cpp‎ | container
<dynarray> 에 정의되어 있음.
template<

    class T

> class dynarray;
(since C++14)

std::dynarray is a sequence container that encapsulates arrays with a size that is fixed at construction and does not change throughout the lifetime of the object.

The elements are stored contiguously, which means that elements can be accessed not only through iterators, but also using offsets on regular pointers to elements. This means that a pointer to an element of a dynarray may be passed to any function that expects a pointer to an element of an array.

There is a special case for a zero-length array (the number of elements was specified as zero during construction). In that case, array.begin() == array.end(), which is some unique value. The effect of calling front() or back() on a zero-sized dynarray is undefined.


목차

[편집] Template parameters

[편집] Member types

Member type Definition
value_type T [edit]
size_type std::size_t [edit]
difference_type std::ptrdiff_t [edit]
reference value_type& [edit]
const_reference const value_type& [edit]
pointer value_type*[edit]
const_pointer const value_type*[edit]
iterator RandomAccessIterator [edit]
const_iterator 상수(constant) 양방향 반복자(iterator) [edit]
reverse_iterator std::reverse_iterator<iterator> [edit]
const_reverse_iterator std::reverse_iterator<const_iterator> [edit]

[편집] Member functions

dynarray의 생성자이다.
(public member function) [edit]
dynarray의 소멸자이다.
(public member function) [edit]
operator=
[deleted]
the container is neither copy-, nor move-assignable
(public member function) [edit]
Element access
access specified element with bounds checking
(public member function) [edit]
특정 원소에 접근한다
(public member function) [edit]
첫번째 요소에 접근한다.
(public member function) [edit]
마지막 요소에 접근한다.
(public member function) [edit]
direct access to the underlying array
(public member function) [edit]
Iterators
첫번째 원소로의 반복자(iterator)를 반환한다.
(public member function) [edit]
마지막 원소로의 반복자(iterator)를 반환한다.
(public member function) [edit]
첫번째 원소로의 역방향 반복자(reverse iterator)를 반환한다.
(public member function) [edit]
마지막 원소로의 역방향 반복자(reverse iterator)를 반환한다.
(public member function) [edit]
Capacity
현재 컨테이너가 비어있는지 확인한다.
(public member function) [edit]
원소의 개수를 반환한다.
(public member function) [edit]
원소의 최대 개수를 반환한다.
(public member function) [edit]
Modifiers
fill the container with specified value
(public member function) [edit]

[편집] Non-member functions

lexicographically compares the values in the dynarray
(function template) [edit]

[편집] Helper classes

specializes the std::uses_allocator type trait
(function template) [edit]