#include <probabilities.hpp>
Public Types | |
| typedef Value | value_type |
| Type of value to validate. | |
Static Public Member Functions | |
| template<typename Domain> | |
| static void | is_valid (value_type v, Domain d) |
Is the value_type valid for this Domain? | |
This class is the archetypical model of the ValidatorConcept. Its primary purpose is to verify that the ValidatorConcept class fully covers the requirements of the Validator Concept.
The following example, which is available in example5.cpp, illustrates a test of the validator_archetype class with respect to coverage of the Validator Concept.
First, create a class that imposes the concept requirement.
|
||||||||||||||||||||
|
Is the
v is valid for domain d. Upon return, these function must guarrantee that v is valid for domain d. Note that the value of v may be modified to ensure that this is the case. If this guarrentee cannot be made, an exception must be thrown. |
1.4.5