Struct null_verifier

Synopsis

#include <include/type_safe/constrained_type.hpp>

struct null_verifier

Description

A Verifier for [ts::constrained_type]() that doesn't check the constraint.

It will simply return the value unchanged, without any checks. \notes It does not impose any additional requirements on the Predicate. \output_section Tagged type

Mentioned in

Methods

verify

Source

Lines 501-508 in include/type_safe/constrained_type.hpp.

struct null_verifier
{
    template <typename Value, typename Predicate>
    static constexpr Value&& verify(Value&& v, const Predicate&)
    {
        return std::forward<Value>(v);
    }
};





Add Discussion as Guest

Log in