diff --git a/tap.hpp b/tap.hpp index 4119d24a..21c686c4 100644 --- a/tap.hpp +++ b/tap.hpp @@ -62,6 +62,21 @@ namespace cruft::TAP { } + /////////////////////////////////////////////////////////////////////// + template + decltype(auto) + expect_valid (ValueT &&value, char const (&fmt)[N], ArgsT &&...args) + { + return expect ( + debug::is_valid ( + std::forward (value) + ), + fmt, + std::forward (args)... + ); + } + + /////////////////////////////////////////////////////////////////////// template decltype(auto)