7 #ifndef IGLOO_STARTSWITHCONSTRAINT_H 8 #define IGLOO_STARTSWITHCONSTRAINT_H 10 #include "./expressions/expression.h" 14 template <
typename ExpectedType>
18 : m_expected(expected) {}
20 bool operator()(
const std::string& actual)
const 22 return actual.find(m_expected) == 0;
25 ExpectedType m_expected;
28 template<
typename ExpectedType >
39 template<
typename ExpectedType >
44 std::ostringstream builder;
45 builder <<
"starts with " << snowhouse::Stringize(constraint.m_expected);
Definition: startswithconstraint.h:15
Definition: stringize.h:71
Definition: expression.h:17