Function deque

Summary

#include <include/EASTL/deque.h>

(1) deque()

(2) explicit deque(const allocator_type &allocator)

(3) explicit deque(size_type n, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

(4) deque(size_type n, const value_type &value, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

(5) deque(const this_type &x)

(6) deque(this_type &&x)

(7) deque(this_type &&x, const allocator_type &allocator)

(8) deque(std::initializer_list< value_type > ilist, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

(9) template <typename InputIterator>
    deque(InputIterator first, InputIterator last)

Function overload

Synopsis

#include <include/EASTL/deque.h>

deque()

Description

deque

Source

Lines 1189-1194 in include/EASTL/deque.h. Line 372 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque()
    : base_type((size_type)0)
{
    // Empty
}

Synopsis

#include <include/EASTL/deque.h>

explicit deque(const allocator_type &allocator)

Description

No description yet.

Source

Lines 1197-1202 in include/EASTL/deque.h. Line 373 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(const allocator_type& allocator)
    : base_type((size_type)0, allocator)
{
    // Empty
}

Synopsis

#include <include/EASTL/deque.h>

explicit deque(size_type n, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

Description

No description yet.

Source

Lines 1205-1210 in include/EASTL/deque.h. Line 374 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(size_type n, const allocator_type& allocator)
    : base_type(n, allocator)
{
    DoFillInit(value_type());
}

Synopsis

#include <include/EASTL/deque.h>

deque(size_type n, const value_type &value, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

Description

No description yet.

Source

Lines 1213-1218 in include/EASTL/deque.h. Line 375 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(size_type n, const value_type& value, const allocator_type& allocator)
    : base_type(n, allocator)
{
    DoFillInit(value);
}

Synopsis

#include <include/EASTL/deque.h>

deque(const this_type &x)

Description

No description yet.

Source

Lines 1221-1226 in include/EASTL/deque.h. Line 376 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(const this_type& x)
    : base_type(x.size(), x.mAllocator)
{
    eastl::uninitialized_copy(x.mItBegin, x.mItEnd, mItBegin);
}

Synopsis

#include <include/EASTL/deque.h>

deque(this_type &&x)

Description

No description yet.

Source

Lines 1229-1234 in include/EASTL/deque.h. Line 377 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(this_type&& x)
  : base_type((size_type)0, x.mAllocator)
{
    swap(x);
}

Synopsis

#include <include/EASTL/deque.h>

deque(this_type &&x, const allocator_type &allocator)

Description

No description yet.

Source

Lines 1237-1242 in include/EASTL/deque.h. Line 378 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(this_type&& x, const allocator_type& allocator)
  : base_type((size_type)0, allocator)
{
    swap(x); // member swap handles the case that x has a different allocator than our allocator by doing a copy.
}

Synopsis

#include <include/EASTL/deque.h>

deque(std::initializer_list< value_type > ilist, const allocator_type &allocator=EASTL_DEQUE_DEFAULT_ALLOCATOR)

Description

No description yet.

Source

Lines 1245-1250 in include/EASTL/deque.h. Line 379 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
inline deque<T, Allocator, kDequeSubarraySize>::deque(std::initializer_list<value_type> ilist, const allocator_type& allocator)
    : base_type(allocator)
{
    DoInit(ilist.begin(), ilist.end(), false_type());
}

Synopsis

#include <include/EASTL/deque.h>

template <typename InputIterator>
deque(InputIterator first, InputIterator last)

Description

No description yet.

Source

Lines 1253-1259 in include/EASTL/deque.h. Line 382 in include/EASTL/deque.h.

template <typename T, typename Allocator, unsigned kDequeSubarraySize>
template <typename InputIterator>
inline deque<T, Allocator, kDequeSubarraySize>::deque(InputIterator first, InputIterator last)
    : base_type(EASTL_DEQUE_DEFAULT_ALLOCATOR) // Call the empty base constructor, which does nothing. We need to do all the work in our own DoInit.
{
    DoInit(first, last, is_integral<InputIterator>());
}





Add Discussion as Guest

Log in