xentara-utils v2.0.4
The Xentara Utility Library
|
A marker for a pack of parameters. More...
#include <xentara/utils/tools/ParameterPack.hpp>
Public Types | |
using | First = typename Splitter< Parameters... >::First |
Type alias for the first type in Parameters. | |
using | Next = typename Splitter< Parameters... >::Next |
Type alias for a parameter pack with one less parameter. | |
Static Public Member Functions | |
static constexpr auto | empty () noexcept -> bool |
Determines if the parameter pack is empty. | |
static consteval auto | self () noexcept -> ParameterPack |
An object of this type. | |
static consteval auto | next () noexcept -> Next |
A parameter pack with one less parameter. | |
A marker for a pack of parameters.
This is an empty class that can be used in meta programming to represent a parameter pack. It is used in a similar way to std::in_place_type_t: it can be passed to a function to select an overload that uses a certain pack of parameter templates.
using xentara::utils::tools::ParameterPack< Parameters >::First = typename Splitter<Parameters...>::First |
Type alias for the first type in Parameters.
using xentara::utils::tools::ParameterPack< Parameters >::Next = typename Splitter<Parameters...>::Next |
Type alias for a parameter pack with one less parameter.
This type alias can be used for recursive templates to access the next iteration in the recursion. It represents a parameter pack that has the same parameters, but with First removed.
|
staticconstexprnoexcept |
Determines if the parameter pack is empty.
|
staticnoexcept |
A parameter pack with one less parameter.
This is an object of type Next. It can be used for recursive templates to access the next iteration in the recursion. The object is a parameter pack that has the same parameters, but with First removed.
|
staticnoexcept |
An object of this type.
This is the same as kParameterPack<Parameters...>. You can use this constant if you need to access an object using the type of the ParameterPack specialization instead of the actual parameter pack.