|
cppfig 0.1.0
Modern C++20 compile-time type-safe configuration library
|
Result of a validation operation. More...
#include <validator.h>
Public Member Functions | |
| operator bool () const | |
Static Public Member Functions | |
| static auto | Ok () -> ValidationResult |
| Creates a successful validation result. | |
| static auto | Error (std::string message) -> ValidationResult |
| Creates a failed validation result with an error message. | |
Public Attributes | |
| bool | is_valid = true |
| std::string | error_message |
Result of a validation operation.
|
inlinestatic |
Creates a failed validation result with an error message.
|
inlinestatic |
Creates a successful validation result.
|
inlineexplicit |
| std::string cppfig::ValidationResult::error_message |
| bool cppfig::ValidationResult::is_valid = true |