Skip to content

Commit

Permalink
Documentation
Browse files Browse the repository at this point in the history
[no ci]
  • Loading branch information
FabienPean committed Mar 3, 2025
1 parent b4b5020 commit c41414b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/comcept/comcept.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
namespace comcept
{
/// Defines the core requirement that a type must fulfill to be used as argument in a composable concept
/// Note that it is not possible to verify the existence of a template,
/// hence the need for a specific type _Type_ template argument.
/// It is not possible to verify the validity of a template variable for all possible instances (infinite possibilities),
/// hence the need to query for a specific type _Type_ template argument.
template<typename Type, typename Trait>
concept composable = std::same_as<decltype(Trait::template value<Type>), const bool>;

Expand All @@ -23,7 +23,7 @@ namespace comcept

/// Composable concept to constrain the end result of a call to `std::decay_t`
template<typename T, typename Type_or_Trait>
concept decays_to = std::same_as<Type_or_Trait,std::decay_t<T>> || satisfy<std::decay_t<T>,Type_or_Trait>;
concept decays_to = std::same_as<Type_or_Trait,std::decay_t<T>> || satisfy<std::decay_t<T>,Type_or_Trait>;
}

namespace comcept::trait
Expand Down

0 comments on commit c41414b

Please sign in to comment.