7namespace CppSpec::Matchers {
10class BeNullptr : MatcherBase<A, std::nullptr_t> {
12 explicit BeNullptr(
Expectation<A>& expectation) : MatcherBase<A, std::nullptr_t>(expectation) {}
14 std::string verb()
override {
return "be"; }
16 bool match()
override {
return this->actual() ==
nullptr; }
Wraps the target of an expectation.
Definition expectation.hpp:47
std::string description() override
Get the description of the Matcher.
Definition be_nullptr.hpp:15
Contains the base class for all Matchers.