kumi v3.1.0
Exquisite Epidote
 
Loading...
Searching...
No Matches

◆ operator""_c()

template<char... c>
constexpr auto kumi::literals::operator""_c ( )
constexprnoexcept

#include <kumi/utils/ct_helpers.hpp>

Forms a integral constant literal of the desired value.

Returns
An instance of kumi::index_t for the specified integral value

Example:

#include <kumi/tuple.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
auto v = 42_c;
auto w = kumi::index<63>;
std::cout << v << "\n";
std::cout << w << "\n";
}