4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::container::dynamic_array< T, A > Class Template Reference

Detailed Description

template<typename T, typename A = std::allocator<T>>
class fcppt::container::dynamic_array< T, A >

An array of dynamic size that does not initialize.

Template Parameters
TMust be a trivial type.
AThe allocator type.

Public Types

using pointer = typename std::allocator_traits<A>::pointer
 
using const_pointer = typename std::allocator_traits<A>::const_pointer
 
using size_type = typename std::allocator_traits<A>::size_type
 

Public Member Functions

 dynamic_array (size_type)
 
 dynamic_array (size_type, A)
 
 ~dynamic_array () noexcept
 
pointer data () noexcept
 
const_pointer data () const noexcept
 
pointer data_end () noexcept
 
const_pointer data_end () const noexcept
 
size_type size () const noexcept
 

Member Typedef Documentation

◆ const_pointer

template<typename T , typename A = std::allocator<T>>
using fcppt::container::dynamic_array< T, A >::const_pointer = typename std::allocator_traits<A>::const_pointer

◆ pointer

template<typename T , typename A = std::allocator<T>>
using fcppt::container::dynamic_array< T, A >::pointer = typename std::allocator_traits<A>::pointer

◆ size_type

template<typename T , typename A = std::allocator<T>>
using fcppt::container::dynamic_array< T, A >::size_type = typename std::allocator_traits<A>::size_type

Constructor & Destructor Documentation

◆ dynamic_array() [1/2]

template<typename T , typename A = std::allocator<T>>
fcppt::container::dynamic_array< T, A >::dynamic_array ( size_type )
explicit

◆ dynamic_array() [2/2]

template<typename T , typename A = std::allocator<T>>
fcppt::container::dynamic_array< T, A >::dynamic_array ( size_type ,
A  )

◆ ~dynamic_array()

template<typename T , typename A = std::allocator<T>>
fcppt::container::dynamic_array< T, A >::~dynamic_array ( )
noexcept

Member Function Documentation

◆ data() [1/2]

template<typename T , typename A = std::allocator<T>>
const_pointer fcppt::container::dynamic_array< T, A >::data ( ) const
nodiscardnoexcept

◆ data() [2/2]

template<typename T , typename A = std::allocator<T>>
pointer fcppt::container::dynamic_array< T, A >::data ( )
nodiscardnoexcept

◆ data_end() [1/2]

template<typename T , typename A = std::allocator<T>>
const_pointer fcppt::container::dynamic_array< T, A >::data_end ( ) const
nodiscardnoexcept

◆ data_end() [2/2]

template<typename T , typename A = std::allocator<T>>
pointer fcppt::container::dynamic_array< T, A >::data_end ( )
nodiscardnoexcept

◆ size()

template<typename T , typename A = std::allocator<T>>
size_type fcppt::container::dynamic_array< T, A >::size ( ) const
nodiscardnoexcept