Template Function ctql::operator””_ct

Function Documentation

template<ct_string str>
constexpr auto ctql::operator""_ct()

User-defined literal: "hello"_ct -> ct_string<5>{"hello"}.

@usage

using namespace ctql;
constexpr auto s = "world"_ct;      // ct_string<5>
constexpr auto t = "hello"_ct + s;  // ct_string<10>

Note

Requires C++20 class NTTPs.