Skip to content

Commit

Permalink
comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 24, 2024
1 parent ffcacbd commit 10f4db9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ constexpr bool all_different_v<T0, Ts...> =
(!std::is_same_v<T0, Ts> && ...) && all_different_v<Ts...>;

// The order of template parameters matches std::is_base_of; the type name
// should be read as an infix, U is [an] instance of T.
// should be read as an infix, U is [an] instance of T.
template<typename U, template<typename...> typename T>
struct is_instance_of : std::false_type {};

Expand Down Expand Up @@ -58,10 +58,11 @@ using internal::all_different_v;

// True if and only if U is an instance of T.
// The order of template parameters matches std::is_base_of; the type name
// should be read as an infix, U is [an] instance of T.
// should be read as an infix, U is [an] instance of T.
template<typename U, template<typename...> typename T>
inline constexpr bool is_instance_of_v = internal::is_instance_of<U, T>::value;

// The concept instance_of<U, T> is satisfied iff U [is an] instance of T.
// The order of template parameters allows for
// requires { { expression } -> instance_of<T>; }
// or
Expand Down

0 comments on commit 10f4db9

Please sign in to comment.