xentara-utils v1.2.1
Xentara utilities library
Loading...
Searching...
No Matches
xentara::utils::core::Capacity< Value > Class Template Reference

Type used to select overloads of FixedVector that preallocate data. More...

#include <core/FixedVector.hpp>

Public Member Functions

constexpr Capacity () noexcept=default
 Default constructor.
 
constexpr Capacity (Value value) noexcept
 Constructor that sets the value.
 
constexpr operator Value () const noexcept
 Conversion to the base type.
 

Detailed Description

template<typename Value>
class xentara::utils::core::Capacity< Value >

Type used to select overloads of FixedVector that preallocate data.

Template Parameters
ValueThe type to use for the capacity value
See also
FixedVector

Constructor & Destructor Documentation

◆ Capacity() [1/2]

template<typename Value >
constexpr xentara::utils::core::Capacity< Value >::Capacity ( )
constexprdefaultnoexcept

Default constructor.

This constructor constructs a capacity of 0.

◆ Capacity() [2/2]

template<typename Value >
constexpr xentara::utils::core::Capacity< Value >::Capacity ( Value  value)
explicitconstexprnoexcept

Constructor that sets the value.

Member Function Documentation

◆ operator Value()

template<typename Value >
constexpr xentara::utils::core::Capacity< Value >::operator Value ( ) const
explicitconstexprnoexcept

Conversion to the base type.