WPILibC++ 2024.3.2
ct_string.h File Reference
#include <stdint.h>
#include <array>
#include <limits>
#include <stdexcept>
#include <string>
#include <string_view>

Go to the source code of this file.

Classes

struct  wpi::ct_string< Char, Traits, N >
 Fixed length string (array of character) for compile time use. More...
 

Namespaces

namespace  wpi
 
namespace  wpi::literals
 

Functions

template<typename Char , size_t M>
 wpi::ct_string (Char const (&s)[M]) -> ct_string< Char, std::char_traits< Char >, M - 1 >
 
template<ct_string S>
constexpr auto wpi::literals::operator""_ct_string ()
 
template<typename Char , typename Traits , size_t N1, size_t N2>
constexpr auto wpi::operator+ (ct_string< Char, Traits, N1 > const &s1, ct_string< Char, Traits, N2 > const &s2) noexcept
 
template<typename Char , typename Traits , size_t N1, size_t... N>
constexpr auto wpi::Concat (ct_string< Char, Traits, N1 > const &s1, ct_string< Char, Traits, N > const &... s)
 Concatenates multiple fixed_strings into a larger fixed_string at compile time. More...
 
template<intmax_t N, int Base = 10, typename Char = char, typename Traits = std::char_traits<Char>>
requires (Base >= 2 && Base <= 36)
constexpr auto wpi::NumToCtString ()
 Converts any integral to a ct_string at compile-time. More...