diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/collections.h | 14 | ||||
-rw-r--r-- | lib/stream_support.h | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/collections.h b/lib/collections.h index 8f5a43d..7d78ef9 100644 --- a/lib/collections.h +++ b/lib/collections.h @@ -8,13 +8,13 @@ template<typename T, typename E> concept SequentialCollection = requires(T c) { - { - c.size() - } -> std::integral; - { - c.data() - } -> std::same_as<const E *>; - }; + { + c.size() + } -> std::integral; + { + c.data() + } -> std::same_as<const E *>; +}; template<typename T> concept IterableCollection = std::is_same_v<decltype(std::declval<T>().begin()), decltype(std::declval<T>().end())>; diff --git a/lib/stream_support.h b/lib/stream_support.h index 7fb256c..fa536f1 100644 --- a/lib/stream_support.h +++ b/lib/stream_support.h @@ -11,8 +11,8 @@ template<typename S> concept stringlike = requires(const S & s) { s.substr(0); }; template<typename T> -concept spanable = std::is_constructible_v<std::span<const typename T::value_type>, T> && ! -stringlike<T> && !std::is_same_v<std::span<typename T::value_type>, T>; +concept spanable = std::is_constructible_v<std::span<const typename T::value_type>, T> && !stringlike<T> + && !std::is_same_v<std::span<typename T::value_type>, T>; namespace std { template<typename T, std::size_t L> |