mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
[android] Fix colors order
Signed-off-by: Andrei Shkrob <github@shkrob.dev>
This commit is contained in:
committed by
Konstantin Pastbin
parent
6c4503b0db
commit
d0bb8c1c49
@@ -1,10 +1,11 @@
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <concepts>
|
||||
#include <functional>
|
||||
#include <initializer_list>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <ranges>
|
||||
#include <tuple>
|
||||
#include <type_traits>
|
||||
#include <vector>
|
||||
@@ -496,4 +497,12 @@ struct RetrieveSecond
|
||||
return pair.second;
|
||||
}
|
||||
};
|
||||
|
||||
template <std::ranges::random_access_range Container>
|
||||
requires std::totally_ordered<std::ranges::range_value_t<Container>>
|
||||
consteval bool HasUniqueElements(Container container)
|
||||
{
|
||||
std::sort(container.begin(), container.end());
|
||||
return std::adjacent_find(container.begin(), container.end()) == container.end();
|
||||
}
|
||||
} // namespace base
|
||||
|
||||
Reference in New Issue
Block a user