Support Class Library
A set of tools providing classes and utility
BinaryPredicate.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <scl/macros.h>
6 
7 namespace scl{
8  namespace concepts{
16  template <class F, class T, class U>
18  constexpr operator bool() const{
19  return Predicate<F, T, U>{};
20  }
21  };
22 
23  /*template <class F, class It, class It_>
24  struct BinaryPredicate{
25  constexpr operator bool() const{
26  return Iterator<It>{}
27  && Iterator<It_>{}
28  && Predicate<F, typename It::value_type, typename It_::valuetype>{};
29 // && CopyConstructible<F>{};
30  }
31  };*/
32  }
33 }
Global namespace of the SCL.
Definition: alias.hpp:3
BinaryPredicate concept, a type F is a binary predicate over T and U if it is an n-ary predicate over...
Predicate concept, a type F is a predicate with Args if it is RegularInvocable and its result is Bool...
Definition: Predicate.h:19