Lines Matching defs:operator

481 // We need a dummy global operator<< so we can bring it into Catch namespace later
483 std::ostream& operator<<(std::ostream&, Catch_global_namespace_dummy);
495 NonCopyable& operator = ( NonCopyable const& ) = delete;
496 NonCopyable& operator = ( NonCopyable && ) = delete;
512 SourceLineInfo& operator = ( SourceLineInfo const& ) = default;
514 SourceLineInfo& operator = ( SourceLineInfo&& ) noexcept = default;
517 bool operator == ( SourceLineInfo const& other ) const noexcept;
518 bool operator < ( SourceLineInfo const& other ) const noexcept;
524 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info );
526 // Bring in operator<< from global namespace into Catch namespace
527 // This is necessary because the overload of operator<< above makes
529 using ::operator<<;
536 std::string operator+() const;
539 T const& operator + ( T const& value, StreamEndStop ) {
633 explicit operator std::string() const {
638 auto operator == ( StringRef const& other ) const noexcept -> bool;
639 auto operator != (StringRef const& other) const noexcept -> bool {
643 auto operator[] ( size_type index ) const noexcept -> char {
678 auto operator += ( std::string& lhs, StringRef const& sr ) -> std::string&;
679 auto operator << ( std::ostream& os, StringRef const& sr ) -> std::ostream&;
681 constexpr auto operator "" _sr( char const* rawChars, std::size_t size ) noexcept -> StringRef {
686 constexpr auto operator "" _catch_sr( char const* rawChars, std::size_t size ) noexcept -> Catch::StringRef {
1386 ResultDisposition::Flags operator | ( ResultDisposition::Flags lhs, ResultDisposition::Flags rhs );
1451 auto operator << ( T const& value ) -> ReusableStringStream& {
1623 // user-defined templated operator<< under clang.
1624 rss.operator<<(value);
2244 auto operator && ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2251 auto operator || ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2258 auto operator == ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2265 auto operator != ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2272 auto operator > ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2279 auto operator < ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2286 auto operator >= ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2293 auto operator <= ( T ) const -> BinaryExpr<LhsT, RhsT const&> const {
2345 auto operator == ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2348 auto operator == ( bool rhs ) -> BinaryExpr<LhsT, bool> const {
2353 auto operator != ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2356 auto operator != ( bool rhs ) -> BinaryExpr<LhsT, bool> const {
2361 auto operator > ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2365 auto operator < ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2369 auto operator >= ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2373 auto operator <= ( RhsT const& rhs ) -> BinaryExpr<LhsT, RhsT const&> const {
2377 auto operator | (RhsT const& rhs) -> BinaryExpr<LhsT, RhsT const&> const {
2381 auto operator & (RhsT const& rhs) -> BinaryExpr<LhsT, RhsT const&> const {
2385 auto operator ^ (RhsT const& rhs) -> BinaryExpr<LhsT, RhsT const&> const {
2390 auto operator && ( RhsT const& ) -> BinaryExpr<LhsT, RhsT const&> const {
2392 "operator&& is not supported inside assertions, "
2397 auto operator || ( RhsT const& ) -> BinaryExpr<LhsT, RhsT const&> const {
2399 "operator|| is not supported inside assertions, "
2417 auto operator <= ( T const& lhs ) -> ExprLhs<T const&> {
2421 auto operator <=( bool value ) -> ExprLhs<bool> {
2537 LazyExpression& operator = ( LazyExpression const& ) = delete;
2539 explicit operator bool() const;
2541 friend auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream&;
2611 bool operator == ( MessageInfo const& other ) const;
2612 bool operator < ( MessageInfo const& other ) const;
2620 MessageStream& operator << ( T const& value ) {
2634 MessageBuilder& operator << ( T const& value ) {
2831 Counts operator - ( Counts const& other ) const;
2832 Counts& operator += ( Counts const& other );
2845 Totals operator - ( Totals const& other ) const;
2846 Totals& operator += ( Totals const& other );
2918 explicit operator bool() const;
3094 Approx operator-() const;
3097 Approx operator()( T const& value ) const {
3110 friend bool operator == ( const T& lhs, Approx const& rhs ) {
3116 friend bool operator == ( Approx const& lhs, const T& rhs ) {
3117 return operator==( rhs, lhs );
3121 friend bool operator != ( T const& lhs, Approx const& rhs ) {
3122 return !operator==( lhs, rhs );
3126 friend bool operator != ( Approx const& lhs, T const& rhs ) {
3127 return !operator==( rhs, lhs );
3131 friend bool operator <= ( T const& lhs, Approx const& rhs ) {
3136 friend bool operator <= ( Approx const& lhs, T const& rhs ) {
3141 friend bool operator >= ( T const& lhs, Approx const& rhs ) {
3146 friend bool operator >= ( Approx const& lhs, T const& rhs ) {
3181 Detail::Approx operator "" _a(long double val);
3182 Detail::Approx operator "" _a(unsigned long long val);
3220 friend std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser );
3248 MatcherUntypedBase& operator = ( MatcherUntypedBase const& ) = delete;
3283 MatchAllOf<T> operator && ( MatcherBase const& other ) const;
3284 MatchAnyOf<T> operator || ( MatcherBase const& other ) const;
3285 MatchNotOf<T> operator ! () const;
3313 MatchAllOf<ArgT> operator && ( MatcherBase<ArgT> const& other ) {
3347 MatchAnyOf<ArgT> operator || ( MatcherBase<ArgT> const& other ) {
3372 MatchAllOf<T> MatcherBase<T>::operator && ( MatcherBase const& other ) const {
3376 MatchAnyOf<T> MatcherBase<T>::operator || ( MatcherBase const& other ) const {
3380 MatchNotOf<T> MatcherBase<T>::operator ! () const {
4424 Option& operator= ( Option const& _other ) {
4432 Option& operator = ( T const& _value ) {
4444 T& operator*() { return *nullableValue; }
4445 T const& operator*() const { return *nullableValue; }
4446 T* operator->() { return nullableValue; }
4447 const T* operator->() const { return nullableValue; }
4456 bool operator !() const { return nullableValue == nullptr; }
4457 explicit operator bool() const {
4578 result_type operator()();
4581 friend bool operator==(SimplePcg32 const& lhs, SimplePcg32 const& rhs);
4582 friend bool operator!=(SimplePcg32 const& lhs, SimplePcg32 const& rhs);
4584 // In theory we also need operator<< and operator>>
4819 bool operator == ( TestCase const& other ) const;
4820 bool operator < ( TestCase const& other ) const;
5440 operator Estimate<Duration2>() const {
5502 LazyStat& operator=( T const& _value ) {
5503 Option<T>::operator=( _value );
5535 AssertionStats& operator = ( AssertionStats const& ) = delete;
5536 AssertionStats& operator = ( AssertionStats && ) = delete;
5551 SectionStats& operator = ( SectionStats const& ) = default;
5552 SectionStats& operator = ( SectionStats && ) = default;
5570 TestCaseStats& operator = ( TestCaseStats const& ) = default;
5571 TestCaseStats& operator = ( TestCaseStats && ) = default;
5589 TestGroupStats& operator = ( TestGroupStats const& ) = default;
5590 TestGroupStats& operator = ( TestGroupStats && ) = default;
5605 TestRunStats& operator = ( TestRunStats const& ) = default;
5606 TestRunStats& operator = ( TestRunStats && ) = default;
5636 operator BenchmarkStats<Duration2>() const {
5823 bool operator == (SectionNode const& other) const {
5826 bool operator == (std::shared_ptr<SectionNode> const& other) const {
5827 return operator==(*other);
5842 bool operator() (std::shared_ptr<SectionNode> const& node) const {
5846 void operator=(BySectionInfo const&) = delete;
6031 Colour& operator=( Colour&& other ) noexcept;
6041 std::ostream& operator << ( std::ostream& os, Colour const& );
6232 XmlFormatting operator | (XmlFormatting lhs, XmlFormatting rhs);
6233 XmlFormatting operator & (XmlFormatting lhs, XmlFormatting rhs);
6243 friend std::ostream& operator << ( std::ostream& os, XmlEncode const& xmlEncode );
6258 ScopedElement& operator=( ScopedElement&& other ) noexcept;
6279 XmlWriter& operator=( XmlWriter const& ) = delete;
6471 TimePoint<Clock> operator()() const {
6664 operator EnvironmentEstimate<Duration2>() const {
6736 struct do_nothing { void operator()() const {} };
6756 BenchmarkFunction& operator=(BenchmarkFunction&& that) {
6761 BenchmarkFunction& operator=(BenchmarkFunction const& that) {
6766 void operator()(Chronometer meter) const { f->call(meter); }
6789 void operator()(int k) const {
6914 operator ExecutionPlan<Duration2>() const {
7213 operator SampleAnalysis<Duration2>() const {
7357 Benchmark & operator=(Fun func) {
7363 explicit operator bool() {
7484 friend bool operator==(NameAndLocation const& lhs, NameAndLocation const& rhs) {
7890 Approx Approx::operator-() const {
7926 Detail::Approx operator "" _a(long double val) {
7929 Detail::Approx operator "" _a(unsigned long long val) {
8066 RunContext& operator =( RunContext const& ) = delete;
8191 auto operator <<( std::ostream& os, ITransientExpression const& expr ) -> std::ostream& {
8203 LazyExpression::operator bool() const {
8207 auto operator << ( std::ostream& os, LazyExpression const& lazyExpr ) -> std::ostream& {
8582 auto operator *() const -> std::string {
8588 auto operator ++() -> iterator& {
8604 auto operator ++(int) -> iterator {
8606 operator++();
8610 auto operator ==(iterator const& other) const -> bool {
8616 auto operator !=(iterator const& other) const -> bool {
8617 return !operator==(other);
8642 inline friend std::ostream& operator << (std::ostream& os, Column const& col) {
8654 auto operator + (Column const& other)->Columns;
8709 auto operator ==(iterator const& other) const -> bool {
8712 auto operator !=(iterator const& other) const -> bool {
8715 auto operator *() const -> std::string {
8733 auto operator ++() -> iterator& {
8740 auto operator ++(int) -> iterator {
8742 operator++();
8751 auto operator += (Column const& col) -> Columns& {
8755 auto operator + (Column const& col) -> Columns {
8761 inline friend std::ostream& operator << (std::ostream& os, Columns const& cols) {
8781 inline auto Column::operator + (Column const& other) -> Columns {
8810 struct UnaryLambdaTraits : UnaryLambdaTraits<decltype( &L::operator() )> {};
8910 explicit operator bool() const {
8916 auto operator*() const -> Token {
8921 auto operator->() const -> Token const * {
8926 auto operator++() -> TokenStream & {
8973 auto operator=( ResultValueBase const &other ) -> ResultValueBase & {
8976 ResultBase::operator=(other);
9015 explicit operator bool() const { return m_type == ResultBase::Ok; }
9112 NonCopyable &operator=( NonCopyable const & ) = delete;
9113 NonCopyable &operator=( NonCopyable && ) = delete;
9242 auto operator|( T const &other ) const -> Parser;
9245 auto operator+( T const &other ) const -> Parser;
9272 auto operator()( std::string const &description ) -> DerivedT & {
9393 auto operator[]( std::string const &optName ) -> Opt & {
9498 auto operator|=( ExeName const &exeName ) -> Parser & {
9503 auto operator|=( Arg const &arg ) -> Parser & {
9508 auto operator|=( Opt const &opt ) -> Parser & {
9513 auto operator|=( Parser const &other ) -> Parser & {
9520 auto operator|( T const &other ) const -> Parser {
9526 auto operator+=( T const &other ) -> Parser & { return operator|=( other ); }
9528 auto operator+( T const &other ) const -> Parser { return operator|( other ); }
9580 friend auto operator<<( std::ostream &os, Parser const &parser ) -> std::ostream& {
9650 auto ComposableParserImpl<DerivedT>::operator|( T const &other ) const -> Parser {
9923 bool SourceLineInfo::operator == ( SourceLineInfo const& other ) const noexcept {
9926 bool SourceLineInfo::operator < ( SourceLineInfo const& other ) const noexcept {
9932 std::ostream& operator << ( std::ostream& os, SourceLineInfo const& info ) {
9941 std::string StreamEndStop::operator+() const {
10268 Colour& Colour::operator=( Colour&& other ) noexcept {
10287 std::ostream& operator << ( std::ostream& os, Colour const& ) {
11830 bool MessageInfo::operator==( MessageInfo const& other ) const {
11834 bool MessageInfo::operator<( MessageInfo const& other ) const {
11988 RedirectedStreams& operator=(RedirectedStreams const&) = delete;
11990 RedirectedStreams& operator=(RedirectedStreams&&) = delete;
12010 TempFile& operator=(TempFile const&) = delete;
12012 TempFile& operator=(TempFile&&) = delete;
12030 OutputRedirect& operator=(OutputRedirect const&) = delete;
12032 OutputRedirect& operator=(OutputRedirect&&) = delete;
12255 SimplePcg32::result_type SimplePcg32::operator()() {
12266 bool operator==(SimplePcg32 const& lhs, SimplePcg32 const& rhs) {
12270 bool operator!=(SimplePcg32 const& lhs, SimplePcg32 const& rhs) {
12571 ResultDisposition::Flags operator | ( ResultDisposition::Flags lhs, ResultDisposition::Flags rhs ) {
13190 Section::operator bool() const {
13270 Version& operator=( Version const& ) = delete;
13285 friend std::ostream& operator << ( std::ostream& os, Version const& version );
13689 void operator()( std::string const&str ) {
13899 std::ostream& operator << ( std::ostream& os, pluralise const& pluraliser ) {
13935 auto StringRef::operator == ( StringRef const& other ) const noexcept -> bool {
13940 auto operator << ( std::ostream& os, StringRef const& str ) -> std::ostream& {
13944 auto operator+=( std::string& lhs, StringRef const& rhs ) -> std::string& {
14175 bool TestCase::operator == ( TestCase const& other ) const {
14181 bool TestCase::operator < ( TestCase const& other ) const {
14206 uint32_t operator()( TestCase const& t ) const {
15261 Counts Counts::operator - ( Counts const& other ) const {
15269 Counts& Counts::operator += ( Counts const& other ) {
15286 Totals Totals::operator - ( Totals const& other ) const {
15293 Totals& Totals::operator += ( Totals const& other ) {
15382 std::ostream& operator << ( std::ostream& os, Version const& version ) {
15493 XmlFormatting operator | (XmlFormatting lhs, XmlFormatting rhs) {
15500 XmlFormatting operator & (XmlFormatting lhs, XmlFormatting rhs) {
15606 std::ostream& operator << ( std::ostream& os, XmlEncode const& xmlEncode ) {
15623 XmlWriter::ScopedElement& XmlWriter::ScopedElement::operator=( ScopedElement&& other ) noexcept {
15903 AssertionPrinter& operator= (AssertionPrinter const&) = delete;
16142 ConsoleAssertionPrinter& operator= (ConsoleAssertionPrinter const&) = delete;
16367 friend auto operator << (std::ostream& os, Duration const& duration) -> std::ostream& {
16414 friend TablePrinter& operator << (TablePrinter& tp, T const& value) {
16419 friend TablePrinter& operator << (TablePrinter& tp, ColumnBreak) {
16441 friend TablePrinter& operator << (TablePrinter& tp, RowBreak) {