diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2022-04-07 15:13:33 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2022-04-07 15:13:33 +0200 |
commit | 033916a4f9d3fd19659a3bc8c5737f52d327b3d4 (patch) | |
tree | fe795df0ea57745db17818d8e3694ead23c1752d /src/utils/cpp | |
parent | 45c2639a2df99b8387ad88bc039ca20e26117120 (diff) | |
download | justbuild-033916a4f9d3fd19659a3bc8c5737f52d327b3d4.tar.gz |
refactor FileRoot::DirectoryEntries
... to foster the implementation of the built-in target "TREE"
Diffstat (limited to 'src/utils/cpp')
-rw-r--r-- | src/utils/cpp/concepts.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/cpp/concepts.hpp b/src/utils/cpp/concepts.hpp index 597179e1..04b2bfcc 100644 --- a/src/utils/cpp/concepts.hpp +++ b/src/utils/cpp/concepts.hpp @@ -66,4 +66,10 @@ concept ClockHasFromTime = requires(std::time_t const t) { T::from_time_t(t); }; +template <typename T> +concept StrMapConstForwardIterator = requires(T const c) { + { (*c).first } + ->same_as<std::string const>; +}; + #endif // INCLUDED_SRC_UTILS_CPP_CONCEPTS_HPP |