Helper to select an string option among a set of allowed choices. More...
#include <algorithm>#include <exception>#include <string>#include <vector>#include <ostream>#include <optional>#include <type_traits>#include <cctype>#include <cstddef>#include <cassert>Go to the source code of this file.
Namespaces | |
| util::details | |
| util | |
| Namespace for general, non-LArSoft-specific utilities. | |
Functions | |
| template<typename Choices > | |
| std::ostream & | util::details::operator<< (std::ostream &out, MultipleChoiceSelectionOption_t< Choices > const &option) |
| Prints an option into a stream. More... | |
| template<typename B1 , typename E1 , typename B2 , typename E2 , typename Comp > | |
| bool | my_lexicographical_compare (B1 b1, E1 e1, B2 b2, E2 e2, Comp less) |
Option comparison operators | |
— BEGIN – Comparison operators -------------------------------------— | |
| template<typename Choices > | |
| bool | util::details::operator== (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value) |
Returns whether option has the specified value. More... | |
| template<typename Choices > | |
| bool | util::details::operator== (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option) |
| template<typename Choices > | |
| bool | util::details::operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, Choices const value) |
Returns whether option does not have the specified value. More... | |
| template<typename Choices > | |
| bool | util::details::operator!= (Choices const value, MultipleChoiceSelectionOption_t< Choices > const &option) |
| template<typename Choices > | |
| bool | util::details::operator== (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label) |
Returns whether option has the specified name or alias. More... | |
| template<typename Choices > | |
| bool | util::details::operator== (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option) |
| template<typename Choices > | |
| bool | util::details::operator!= (MultipleChoiceSelectionOption_t< Choices > const &option, std::string const &label) |
Returns whether option does not have the specified name or alias. More... | |
| template<typename Choices > | |
| bool | util::details::operator!= (std::string const &label, MultipleChoiceSelectionOption_t< Choices > const &option) |
Variables | |
| template<typename... Strings> | |
| constexpr auto | util::details::AllConvertibleToStrings_v = std::conjunction_v<std::is_convertible<Strings, std::string>...> |
Helper to select an string option among a set of allowed choices.
Definition in file MultipleChoiceSelection.h.
| bool my_lexicographical_compare | ( | B1 | b1, |
| E1 | e1, | ||
| B2 | b2, | ||
| E2 | e2, | ||
| Comp | less | ||
| ) |
Definition at line 531 of file MultipleChoiceSelection.h.
1.8.11