#include <sprout/algorithm/equal_range.hpp>
#include <sprout/algorithm/all_of_equal.hpp>
#include <sprout/array.hpp>
#include <sprout/container.hpp>
using namespace sprout;
SPROUT_STATIC_CONSTEXPR auto input = array<int, 10>{{1, 2, 3, 5, 5, 5, 5, 8, 9, 10}};
SPROUT_STATIC_CONSTEXPR auto result = sprout::equal_range(begin(input), end(input), 5);
static_assert(result.first - begin(input) == 3, "a lower bound position is 3.");
static_assert(result.second - begin(input) == 7, "a upper bound position is 7.");
static_assert(sprout::all_of_equal(result.first, result.second. 5), "all of result range is equal to 5.");