template <typename T>
struct StringConstant
Defined at line 37 of file ../../third_party/abseil-cpp/absl/strings/internal/string_constant.h
StringConstant
<T
> represents a compile time string constant.
It can be accessed via its `absl::string_view value` static member.
It is guaranteed that the `string_view` returned has constant `.data()`,
constant `.size()` and constant `value[i]` for all `0
<
= i
<
.size()`
The `T` is an opaque type. It is guaranteed that different string constants
will have different values of `T`. This allows users to associate the string
constant with other static state at compile time.
Instances should be made using the `MakeStringConstant()` factory function
below.
Public Members
static basic_string_view value
Public Methods
absl::string_view operator() ()
Defined at line 45 of file ../../third_party/abseil-cpp/absl/strings/internal/string_constant.h