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

◆ operator""_l()

template<kumi::str ID>
auto kumi::literals::operator""_l ( )
constexprnoexcept

Forms a constant string literal of the desired value.

Returns
An instance of kumi::label for the specified string
Note
It differs from the ""_id operator on the type and the overload that it will pick up. An identifier and a label are two different parts of a field. Label represents the value that is displayed.

Example:

#include <kumi/kumi.hpp>
#include <iostream>
int main()
{
using namespace kumi::literals;
auto n = "Peter"_l;
auto s = kumi::label<"Jackson">;
std::cout << n << "\n";
std::cout << s << "\n";
}
constexpr label_t< Label > const label
Inline literal constant value for kumi::label_t.
Definition ct_helpers.hpp:110