4.6.0
Freundlich's C++ toolkit
Loading...
Searching...
No Matches
fcppt::array::object< T, Size > Class Template Reference

Public Types

using impl_type = std::array<T, Size>
 
using value_type = typename impl_type::value_type
 
using reference = typename impl_type::reference
 
using const_reference = typename impl_type::const_reference
 
using size_type = typename impl_type::size_type
 
using iterator = typename impl_type::iterator
 
using const_iterator = typename impl_type::const_iterator
 
using pointer = typename impl_type::pointer
 
using const_pointer = typename impl_type::const_pointer
 

Public Member Functions

template<typename... Args>
requires (Size == sizeof...(Args) && std::conjunction_v<std::is_constructible<T, Args>...>)
constexpr object (Args &&...) noexcept(std::conjunction_v< std::is_nothrow_constructible< T, Args >... >)
 
 object (fcppt::no_init const &)
 
reference get_unsafe (size_type) noexcept
 
const_reference get_unsafe (size_type) const noexcept
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
pointer data ()
 
const_pointer data () const
 
constexpr size_type size () const
 
constexpr impl_typeimpl () noexcept
 
constexpr impl_type const & impl () const noexcept
 

Member Typedef Documentation

◆ const_iterator

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::const_iterator = typename impl_type::const_iterator

◆ const_pointer

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::const_pointer = typename impl_type::const_pointer

◆ const_reference

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::const_reference = typename impl_type::const_reference

◆ impl_type

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::impl_type = std::array<T, Size>

◆ iterator

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::iterator = typename impl_type::iterator

◆ pointer

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::pointer = typename impl_type::pointer

◆ reference

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::reference = typename impl_type::reference

◆ size_type

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::size_type = typename impl_type::size_type

◆ value_type

template<typename T , std::size_t Size>
using fcppt::array::object< T, Size >::value_type = typename impl_type::value_type

Constructor & Destructor Documentation

◆ object() [1/2]

template<typename T , std::size_t Size>
template<typename... Args>
requires (Size == sizeof...(Args) && std::conjunction_v<std::is_constructible<T, Args>...>)
fcppt::array::object< T, Size >::object ( Args && ...) const
explicitconstexprnoexcept

◆ object() [2/2]

template<typename T , std::size_t Size>
fcppt::array::object< T, Size >::object ( fcppt::no_init const & )
explicit

Member Function Documentation

◆ begin() [1/2]

template<typename T , std::size_t Size>
iterator fcppt::array::object< T, Size >::begin ( )
nodiscard

◆ begin() [2/2]

template<typename T , std::size_t Size>
const_iterator fcppt::array::object< T, Size >::begin ( ) const
nodiscard

◆ data() [1/2]

template<typename T , std::size_t Size>
pointer fcppt::array::object< T, Size >::data ( )
nodiscard

◆ data() [2/2]

template<typename T , std::size_t Size>
const_pointer fcppt::array::object< T, Size >::data ( ) const
nodiscard

◆ end() [1/2]

template<typename T , std::size_t Size>
iterator fcppt::array::object< T, Size >::end ( )
nodiscard

◆ end() [2/2]

template<typename T , std::size_t Size>
const_iterator fcppt::array::object< T, Size >::end ( ) const
nodiscard

◆ get_unsafe() [1/2]

template<typename T , std::size_t Size>
const_reference fcppt::array::object< T, Size >::get_unsafe ( size_type ) const
nodiscardnoexcept

◆ get_unsafe() [2/2]

template<typename T , std::size_t Size>
reference fcppt::array::object< T, Size >::get_unsafe ( size_type )
nodiscardnoexcept

◆ impl() [1/2]

template<typename T , std::size_t Size>
impl_type const & fcppt::array::object< T, Size >::impl ( ) const
nodiscardconstexprnoexcept

◆ impl() [2/2]

template<typename T , std::size_t Size>
impl_type & fcppt::array::object< T, Size >::impl ( )
nodiscardconstexprnoexcept

◆ size()

template<typename T , std::size_t Size>
size_type fcppt::array::object< T, Size >::size ( ) const
nodiscardconstexpr