Public Member Functions | Private Member Functions | Private Attributes | Friends
absl::InlinedVector< T, N, A > Class Template Reference

#include <inlined_vector.h>

List of all members.

Public Member Functions

void assign (size_type n, const_reference v)
void assign (std::initializer_list< value_type > list)
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
void assign (ForwardIterator first, ForwardIterator last)
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
void assign (InputIterator first, InputIterator last)
reference at (size_type i)
const_reference at (size_type i) const
reference back ()
const_reference back () const
iterator begin () noexcept
const_iterator begin () const noexcept
size_type capacity () const noexcept
const_iterator cbegin () const noexcept
const_iterator cend () const noexcept
void clear () noexcept
const_reverse_iterator crbegin () const noexcept
const_reverse_iterator crend () const noexcept
pointer data () noexcept
const_pointer data () const noexcept
template<typename... Args>
iterator emplace (const_iterator pos, Args &&...args)
template<typename... Args>
reference emplace_back (Args &&...args)
bool empty () const noexcept
iterator end () noexcept
const_iterator end () const noexcept
iterator erase (const_iterator pos)
iterator erase (const_iterator from, const_iterator to)
reference front ()
const_reference front () const
allocator_type get_allocator () const
 InlinedVector () noexcept(noexcept(allocator_type()))
 InlinedVector (const allocator_type &alloc) noexcept
 InlinedVector (size_type n, const allocator_type &alloc=allocator_type())
 InlinedVector (size_type n, const_reference v, const allocator_type &alloc=allocator_type())
 InlinedVector (std::initializer_list< value_type > list, const allocator_type &alloc=allocator_type())
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
 InlinedVector (ForwardIterator first, ForwardIterator last, const allocator_type &alloc=allocator_type())
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
 InlinedVector (InputIterator first, InputIterator last, const allocator_type &alloc=allocator_type())
 InlinedVector (const InlinedVector &other)
 InlinedVector (const InlinedVector &other, const allocator_type &alloc)
 InlinedVector (InlinedVector &&other) noexcept(absl
 InlinedVector (InlinedVector &&other, const allocator_type &alloc) noexcept(absl
iterator insert (const_iterator pos, const_reference v)
iterator insert (const_iterator pos, rvalue_reference v)
iterator insert (const_iterator pos, size_type n, const_reference v)
iterator insert (const_iterator pos, std::initializer_list< value_type > list)
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
iterator insert (const_iterator pos, ForwardIterator first, ForwardIterator last)
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
iterator insert (const_iterator pos, InputIterator first, InputIterator last)
size_type max_size () const noexcept
InlinedVectoroperator= (std::initializer_list< value_type > list)
InlinedVectoroperator= (const InlinedVector &other)
InlinedVectoroperator= (InlinedVector &&other)
reference operator[] (size_type i)
const_reference operator[] (size_type i) const
void pop_back () noexcept
void push_back (const_reference v)
void push_back (rvalue_reference v)
reverse_iterator rbegin () noexcept
const_reverse_iterator rbegin () const noexcept
reverse_iterator rend () noexcept
const_reverse_iterator rend () const noexcept
void reserve (size_type n)
void resize (size_type n)
void resize (size_type n, const_reference v)
void shrink_to_fit ()
size_type size () const noexcept
void swap (InlinedVector &other)
 ~InlinedVector ()

Private Member Functions

template<typename ForwardIt >
void AppendForwardRange (ForwardIt first, ForwardIt last)
template<typename... Args>
reference Construct (pointer p, Args &&...args)
void Destroy (pointer from, pointer to)
void EnlargeBy (size_type delta)
template<typename... Args>
reference GrowAndEmplaceBack (Args &&...args)
void InitAssign (size_type n)
void InitAssign (size_type n, const_reference v)
iterator InsertWithCount (const_iterator position, size_type n, const_reference v)
template<typename ForwardIt >
iterator InsertWithForwardRange (const_iterator position, ForwardIt first, ForwardIt last)
void ResetAllocation (pointer new_data, size_type new_capacity, size_type new_size)
std::pair< iterator, iterator > ShiftRight (const_iterator position, size_type n)
 static_assert (N > 0,"InlinedVector cannot be instantiated with `0` inlined elements.")
void SwapImpl (InlinedVector &other)
template<typename Iterator >
void UninitializedCopy (Iterator src, Iterator src_last, pointer dst)
template<typename... Args>
void UninitializedFill (pointer dst, pointer dst_last, const Args &...args)

Private Attributes

Storage storage_

Friends

template<typename H , typename TheT , size_t TheN, typename TheA >
AbslHashValue (H h, const absl::InlinedVector< TheT, TheN, TheA > &a)

Detailed Description

template<typename T, size_t N, typename A = std::allocator<T>>
class absl::InlinedVector< T, N, A >

Definition at line 68 of file inlined_vector.h.


Constructor & Destructor Documentation

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( ) [inline]

Definition at line 104 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( const allocator_type &  alloc) [inline, explicit]

Definition at line 108 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( size_type  n,
const allocator_type &  alloc = allocator_type() 
) [inline, explicit]

Definition at line 112 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( size_type  n,
const_reference  v,
const allocator_type &  alloc = allocator_type() 
) [inline]

Definition at line 119 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( std::initializer_list< value_type >  list,
const allocator_type &  alloc = allocator_type() 
) [inline]

Definition at line 126 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
absl::InlinedVector< T, N, A >::InlinedVector ( ForwardIterator  first,
ForwardIterator  last,
const allocator_type &  alloc = allocator_type() 
) [inline]

Definition at line 140 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
absl::InlinedVector< T, N, A >::InlinedVector ( InputIterator  first,
InputIterator  last,
const allocator_type &  alloc = allocator_type() 
) [inline]

Definition at line 150 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( const InlinedVector< T, N, A > &  other) [inline]

Definition at line 157 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( const InlinedVector< T, N, A > &  other,
const allocator_type &  alloc 
) [inline]

Definition at line 161 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( InlinedVector< T, N, A > &&  other) [inline]

Definition at line 189 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::InlinedVector ( InlinedVector< T, N, A > &&  other,
const allocator_type &  alloc 
) [inline]

Definition at line 223 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::~InlinedVector ( ) [inline]

Definition at line 251 of file inlined_vector.h.


Member Function Documentation

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename ForwardIt >
void absl::InlinedVector< T, N, A >::AppendForwardRange ( ForwardIt  first,
ForwardIt  last 
) [inline, private]

Definition at line 1066 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::assign ( size_type  n,
const_reference  v 
) [inline]

Definition at line 499 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::assign ( std::initializer_list< value_type >  list) [inline]

Definition at line 522 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
void absl::InlinedVector< T, N, A >::assign ( ForwardIterator  first,
ForwardIterator  last 
) [inline]

Definition at line 530 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
void absl::InlinedVector< T, N, A >::assign ( InputIterator  first,
InputIterator  last 
) [inline]

Definition at line 555 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reference absl::InlinedVector< T, N, A >::at ( size_type  i) [inline]

Definition at line 328 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reference absl::InlinedVector< T, N, A >::at ( size_type  i) const [inline]

Definition at line 338 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reference absl::InlinedVector< T, N, A >::back ( ) [inline]

Definition at line 364 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reference absl::InlinedVector< T, N, A >::back ( ) const [inline]

Definition at line 371 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::begin ( ) [inline]

Definition at line 379 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_iterator absl::InlinedVector< T, N, A >::begin ( ) const [inline]

Definition at line 383 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
size_type absl::InlinedVector< T, N, A >::capacity ( ) const [inline]

Definition at line 286 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_iterator absl::InlinedVector< T, N, A >::cbegin ( ) const [inline]

Definition at line 397 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_iterator absl::InlinedVector< T, N, A >::cend ( ) const [inline]

Definition at line 402 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::clear ( ) [inline]

Definition at line 795 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename... Args>
reference absl::InlinedVector< T, N, A >::Construct ( pointer  p,
Args &&...  args 
) [inline, private]

Definition at line 892 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reverse_iterator absl::InlinedVector< T, N, A >::crbegin ( ) const [inline]

Definition at line 429 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reverse_iterator absl::InlinedVector< T, N, A >::crend ( ) const [inline]

Definition at line 435 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
pointer absl::InlinedVector< T, N, A >::data ( ) [inline]

Definition at line 296 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_pointer absl::InlinedVector< T, N, A >::data ( ) const [inline]

Definition at line 304 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::Destroy ( pointer  from,
pointer  to 
) [inline, private]

Definition at line 909 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename... Args>
iterator absl::InlinedVector< T, N, A >::emplace ( const_iterator  pos,
Args &&...  args 
) [inline]

Definition at line 675 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename... Args>
reference absl::InlinedVector< T, N, A >::emplace_back ( Args &&...  args) [inline]

Definition at line 702 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
bool absl::InlinedVector< T, N, A >::empty ( ) const [inline]

Definition at line 260 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::end ( ) [inline]

Definition at line 388 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_iterator absl::InlinedVector< T, N, A >::end ( ) const [inline]

Definition at line 392 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::EnlargeBy ( size_type  delta) [inline, private]

Definition at line 928 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::erase ( const_iterator  pos) [inline]

Definition at line 752 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::erase ( const_iterator  from,
const_iterator  to 
) [inline]

Definition at line 766 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reference absl::InlinedVector< T, N, A >::front ( ) [inline]

Definition at line 349 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reference absl::InlinedVector< T, N, A >::front ( ) const [inline]

Definition at line 356 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
allocator_type absl::InlinedVector< T, N, A >::get_allocator ( ) const [inline]

Definition at line 440 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename... Args>
reference absl::InlinedVector< T, N, A >::GrowAndEmplaceBack ( Args &&...  args) [inline, private]

Definition at line 1017 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::InitAssign ( size_type  n) [inline, private]

Definition at line 1035 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::InitAssign ( size_type  n,
const_reference  v 
) [inline, private]

Definition at line 1050 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
const_reference  v 
) [inline]

Definition at line 619 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
rvalue_reference  v 
) [inline]

Definition at line 625 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
size_type  n,
const_reference  v 
) [inline]

Definition at line 632 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
std::initializer_list< value_type >  list 
) [inline]

Definition at line 639 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename ForwardIterator , EnableIfAtLeastForwardIterator< ForwardIterator > * = nullptr>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
ForwardIterator  first,
ForwardIterator  last 
) [inline]

Definition at line 651 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename InputIterator , DisableIfAtLeastForwardIterator< InputIterator > * = nullptr>
iterator absl::InlinedVector< T, N, A >::insert ( const_iterator  pos,
InputIterator  first,
InputIterator  last 
) [inline]

Definition at line 661 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
iterator absl::InlinedVector< T, N, A >::InsertWithCount ( const_iterator  position,
size_type  n,
const_reference  v 
) [inline, private]

Definition at line 1082 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename ForwardIt >
iterator absl::InlinedVector< T, N, A >::InsertWithForwardRange ( const_iterator  position,
ForwardIt  first,
ForwardIt  last 
) [inline, private]

Definition at line 1096 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
size_type absl::InlinedVector< T, N, A >::max_size ( ) const [inline]

Definition at line 270 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
InlinedVector& absl::InlinedVector< T, N, A >::operator= ( std::initializer_list< value_type >  list) [inline]

Definition at line 450 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
InlinedVector& absl::InlinedVector< T, N, A >::operator= ( const InlinedVector< T, N, A > &  other) [inline]

Definition at line 457 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
InlinedVector& absl::InlinedVector< T, N, A >::operator= ( InlinedVector< T, N, A > &&  other) [inline]

Definition at line 470 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reference absl::InlinedVector< T, N, A >::operator[] ( size_type  i) [inline]

Definition at line 313 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reference absl::InlinedVector< T, N, A >::operator[] ( size_type  i) const [inline]

Definition at line 320 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::pop_back ( ) [inline]

Definition at line 733 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::push_back ( const_reference  v) [inline]

Definition at line 721 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::push_back ( rvalue_reference  v) [inline]

Definition at line 725 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reverse_iterator absl::InlinedVector< T, N, A >::rbegin ( ) [inline]

Definition at line 407 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reverse_iterator absl::InlinedVector< T, N, A >::rbegin ( ) const [inline]

Definition at line 411 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
reverse_iterator absl::InlinedVector< T, N, A >::rend ( ) [inline]

Definition at line 418 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
const_reverse_iterator absl::InlinedVector< T, N, A >::rend ( ) const [inline]

Definition at line 422 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::reserve ( size_type  n) [inline]

Definition at line 817 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::ResetAllocation ( pointer  new_data,
size_type  new_capacity,
size_type  new_size 
) [inline, private]

Definition at line 873 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::resize ( size_type  n) [inline]

Definition at line 570 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::resize ( size_type  n,
const_reference  v 
) [inline]

Definition at line 594 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
std::pair<iterator, iterator> absl::InlinedVector< T, N, A >::ShiftRight ( const_iterator  position,
size_type  n 
) [inline, private]

Definition at line 958 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::shrink_to_fit ( ) [inline]

Definition at line 835 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
size_type absl::InlinedVector< T, N, A >::size ( ) const [inline]

Definition at line 265 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
absl::InlinedVector< T, N, A >::static_assert ( ,
,
"InlinedVector< T, N, A > cannot be instantiated with `0` inlined elements."   
) [private]
template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::swap ( InlinedVector< T, N, A > &  other) [inline]

Definition at line 863 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
void absl::InlinedVector< T, N, A >::SwapImpl ( InlinedVector< T, N, A > &  other) [inline, private]

Definition at line 1115 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename Iterator >
void absl::InlinedVector< T, N, A >::UninitializedCopy ( Iterator  src,
Iterator  src_last,
pointer  dst 
) [inline, private]

Definition at line 899 of file inlined_vector.h.

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename... Args>
void absl::InlinedVector< T, N, A >::UninitializedFill ( pointer  dst,
pointer  dst_last,
const Args &...  args 
) [inline, private]

Definition at line 904 of file inlined_vector.h.


Friends And Related Function Documentation

template<typename T, size_t N, typename A = std::allocator<T>>
template<typename H , typename TheT , size_t TheN, typename TheA >
H AbslHashValue ( h,
const absl::InlinedVector< TheT, TheN, TheA > &  a 
) [friend]

Definition at line 1294 of file inlined_vector.h.


Member Data Documentation

template<typename T, size_t N, typename A = std::allocator<T>>
Storage absl::InlinedVector< T, N, A >::storage_ [private]

Definition at line 1205 of file inlined_vector.h.


The documentation for this class was generated from the following file:


abseil_cpp
Author(s):
autogenerated on Wed Jun 19 2019 19:42:16