GMP 0.3.0
Generative Metaprogramming library for C++
Loading...
Searching...
No Matches
fixed_string.hpp File Reference
#include <algorithm>
#include <string_view>
#include "utility.hpp"

Go to the source code of this file.

Classes

struct  gmp::fixed_string< N >
 A compile-time string type with fixed length and constexpr operations. More...
 

Namespaces

namespace  gmp
 

Functions

template<std::size_t N>
 gmp::fixed_string (char const(&)[N]) -> fixed_string< N - 1 >
 Deduce fixed_string length from a string literal.
 
template<std::size_t N1, std::size_t N2>
consteval fixed_string< N1+N2gmp::operator+ (fixed_string< N1 > const &s1, fixed_string< N2 > const &s2)
 Concatenate two fixed strings at compile time.
 
template<fixed_string FirstValue, fixed_string... RestValues, auto String>
consteval auto gmp::remove_all (constant_arg_t< String >)
 Remove all occurrences of one or more compile-time substrings.