Unordered set for trivial types, including string literals. More...
#include <userver/utils/trivial_map.hpp>
Public Types | |
using | First = typename TypesPair::first_type |
using | Second = typename TypesPair::second_type |
Public Member Functions | |
constexpr | TrivialSet (BuilderFunc &&func) noexcept |
constexpr bool | Contains (First value) const noexcept |
constexpr bool | ContainsICase (std::string_view value) const noexcept |
constexpr std::size_t | size () const noexcept |
std::string | Describe () const |
Unordered set for trivial types, including string literals.
For a two-value Case statements or efficiency notes see utils::TrivialBimap.
Definition at line 637 of file trivial_map.hpp.
using utils::TrivialSet< BuilderFunc >::First = typename TypesPair::first_type |
Definition at line 642 of file trivial_map.hpp.
using utils::TrivialSet< BuilderFunc >::Second = typename TypesPair::second_type |
Definition at line 643 of file trivial_map.hpp.
|
inlineconstexprnoexcept |
Definition at line 645 of file trivial_map.hpp.
|
inlineconstexprnoexcept |
Definition at line 654 of file trivial_map.hpp.
|
inlineconstexprnoexcept |
Definition at line 660 of file trivial_map.hpp.
|
inline |
Returns a string of comma separated quoted values of Case parameters.
Example: "'a', 'b', 'c'"
Parameters of Case should be formattable.
Definition at line 677 of file trivial_map.hpp.
|
inlineconstexprnoexcept |
Definition at line 668 of file trivial_map.hpp.