C++ Essence Library 0.1.0
A Utility Library for Modern C++ Programming
Loading...
Searching...
No Matches
essence::meta::remove< S, Removal > Struct Template Reference

Removes a substring from a literal string. More...

#include <literal_string_util.hpp>

Static Public Attributes

static constexpr auto groups = split_v<S, Removal>
 
static constexpr auto value
 

Detailed Description

template<literal_string S, literal_string Removal>
struct essence::meta::remove< S, Removal >

Removes a substring from a literal string.

Template Parameters
SThe literal string.
RemovalThe substring.

Member Data Documentation

◆ value

template<literal_string S, literal_string Removal>
auto essence::meta::remove< S, Removal >::value
staticconstexpr
Initial value:
= [] {
return []<std::size_t... Is>(std::index_sequence<Is...>) {
return literal_string{
std::span<const char, groups[Is].size()>{groups[Is].data(), groups[Is].size()}...};
}(std::make_index_sequence<groups.size()>{});
}()

The documentation for this struct was generated from the following file: