tclap 1.6.0
Classes | Namespaces | Concepts | Functions
PredicateConstraint.h File Reference
#include <tclap/Constraint.h>
#include <concepts>
#include <functional>
#include <type_traits>
#include <utility>
#include <stdexcept>
#include <string>
Include dependency graph for PredicateConstraint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TCLAP::internal::FixedConstraintText
 
struct  TCLAP::internal::RuleConstraintText
 
struct  TCLAP::internal::IsConstraintStdFunction< Function >
 
struct  TCLAP::internal::IsConstraintStdFunction< std::function< Signature > >
 
class  TCLAP::PredicateConstraint< T, Function, Text >
 Adapts an owned function or const function object to Constraint<T>. More...
 

Namespaces

namespace  TCLAP
 
namespace  TCLAP::internal
 

Concepts

concept  TCLAP::internal::ConstraintPredicate
 

Functions

template<class Function >
void TCLAP::internal::ValidateConstraintPredicate (const Function &function)
 
template<class T , class Function >
requires std::predicate<const std::decay_t<Function> &, const T &>
auto TCLAP::MakeConstraint (std::string description, std::string shortId, Function &&function)
 Creates an owning constraint with fixed presentation text.
 
template<class T , class Rule >
requires std::predicate<const std::decay_t<Rule> &, const T &> && requires(const std::decay_t<Rule> &rule) { { rule.description() } -> std::convertible_to<std::string>; { rule.shortID() } -> std::convertible_to<std::string>; }
auto TCLAP::MakeRuleConstraint (Rule &&rule)
 Creates an owning rule constraint.