Templa 0.0.1-alpha
C++ Metaprogramming Utilities
|
Computes a compile-time unique sequence from a container expression. More...
#include <algorithms.hpp>
Static Public Attributes | |
static constexpr auto | unique_sequence |
The resulting array with unique elements from the input container. |
Computes a compile-time unique sequence from a container expression.
Accepts a constexpr container and eliminates duplicate elements using the same logic as the unique struct. The container must be both a Container and Comparable.
a | A container expression (e.g., std::array) with known contents. @requires The container must satisfy concepts::Container and concepts::Comparable. |
|
staticconstexpr |
The resulting array with unique elements from the input container.
Uses an index-based iteration with compile-time filtering to populate a new array containing only the first occurrences of each element.