Public Member Functions | Public Attributes | List of all members
Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc > Struct Template Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >:
Inheritance graph
[legend]

Public Member Functions

 ContainsElementMatcher (T const &comparator)
 
std::string describe () const override
 
bool match (std::vector< T, Alloc > const &v) const override
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherBase< T >
MatchNotOf< T > operator! () const
 
MatchAllOf< T > operator&& (MatcherBase const &other) const
 
MatchAnyOf< T > operator|| (MatcherBase const &other) const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
 MatcherUntypedBase ()=default
 
 MatcherUntypedBase (MatcherUntypedBase const &)=default
 
MatcherUntypedBaseoperator= (MatcherUntypedBase const &)=delete
 
std::string toString () const
 
- Public Member Functions inherited from Catch::Matchers::Impl::MatcherMethod< T >
virtual bool match (T const &arg) const=0
 

Public Attributes

T const & m_comparator
 

Additional Inherited Members

- Protected Member Functions inherited from Catch::Matchers::Impl::MatcherUntypedBase
virtual ~MatcherUntypedBase ()
 
- Protected Attributes inherited from Catch::Matchers::Impl::MatcherUntypedBase
std::string m_cachedToString
 

Detailed Description

template<typename T, typename Alloc>
struct Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >

Definition at line 3605 of file catch.hpp.

Constructor & Destructor Documentation

◆ ContainsElementMatcher()

template<typename T , typename Alloc >
Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::ContainsElementMatcher ( T const &  comparator)
inline

Definition at line 3607 of file catch.hpp.

Member Function Documentation

◆ describe()

template<typename T , typename Alloc >
std::string Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::describe ( ) const
inlineoverridevirtual

Implements Catch::Matchers::Impl::MatcherUntypedBase.

Definition at line 3618 of file catch.hpp.

◆ match()

template<typename T , typename Alloc >
bool Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::match ( std::vector< T, Alloc > const &  v) const
inlineoverride

Definition at line 3609 of file catch.hpp.

Member Data Documentation

◆ m_comparator

template<typename T , typename Alloc >
T const& Catch::Matchers::Vector::ContainsElementMatcher< T, Alloc >::m_comparator

Definition at line 3622 of file catch.hpp.


The documentation for this struct was generated from the following file:


magic_enum
Author(s):
autogenerated on Fri Feb 21 2025 03:20:19