Support Class Library
A set of tools providing classes and utility
Same.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace scl{
6  namespace concepts{
12  template <class Lhs, class Rhs>
13  struct Same{
14  constexpr operator bool() const{
15  using namespace scl::tools;
16  static_assert(meta::is_same<Lhs, Rhs>(), "Same<Lhs, Rhs>: Lhs and Rhs are different types.");
17  return true;
18  }
19  };
20  }
21 }
Global namespace of the SCL.
Definition: alias.hpp:3
Same concept, two types Lhs and Rhs are considered the same if meta::is_same<Lhs, Rhs>() is true...
Definition: Same.h:13
General purpose tooling.
Definition: iostream.hpp:4