|
dot-xx
A personal collection of small C++ modules
|
Additional traits that tell the library how to handle the vector container type (when std::ranges facilities aren't enought). More...
Static Public Member Functions | |
| static constexpr V | construct (uz size) |
| Construct the vector of specified size. | |
| static constexpr V | construct (uz size) |
| Overload for size::Bound -sized containers. See the main overload's doc. | |
| static constexpr V | construct (uz size) |
| Overload for size::Static -sized containers. See the main overload's doc. | |
Static Public Attributes | |
| static constexpr auto | size_tag = autodetect::size<V> |
| The size of container, see dxx::math::container_traits::size. | |
Additional traits that tell the library how to handle the vector container type (when std::ranges facilities aren't enought).
Should work by default for STL, specialize for custom types or conform to STL API design
|
inlinestaticnodiscardconstexpr |
Construct the vector of specified size.
This constructor is expected to also be provided for fixed-size types where you can check whether the runtime-provied size conforms to compile- time restrictions.
The default implementation uses a debug-mode assert for this and does no checks in release builds - see overloads