Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/clang-format-patches-e8gl73t' in…
Browse files Browse the repository at this point in the history
…to test-expl-instantiation
  • Loading branch information
magnesj committed Apr 1, 2024
2 parents 84006bc + 2f12580 commit c11cf99
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ namespace caf
{

template <typename T>
concept Vector = requires {
typename T::value_type; // Require the existence of value_type
typename T::allocator_type; // Require the existence of allocator_type
requires std::same_as<T, std::vector<typename T::value_type, typename T::allocator_type>>; // Ensure it's a vector
};
concept Vector =
requires {
typename T::value_type; // Require the existence of value_type
typename T::allocator_type; // Require the existence of allocator_type
requires std::same_as<T, std::vector<typename T::value_type, typename T::allocator_type>>; // Ensure it's a vector
};

template <Vector T>
bool checkIfVector()
Expand Down

0 comments on commit c11cf99

Please sign in to comment.