9#ifndef FORTRAN_COMMON_STATIC_MULTIMAP_VIEW_H_
10#define FORTRAN_COMMON_STATIC_MULTIMAP_VIEW_H_
25 using Key =
typename V::Key;
26 using const_iterator =
const V *;
28 constexpr const_iterator begin()
const {
return begin_; }
29 constexpr const_iterator end()
const {
return end_; }
34 template <std::
size_t N>
36 : begin_{&array[0]}, end_{&array[0] + N} {}
40 std::pair<const_iterator, const_iterator> equal_range(
const Key &key)
const {
41 return std::equal_range(begin_, end_, key);
47 constexpr bool Verify()
const {
48 const V *lastSeen{begin_};
50 for (
const auto *x{begin_}; x != end_; ++x) {
51 isSorted &= lastSeen->key <= x->key;
58 const_iterator begin_{
nullptr};
59 const_iterator end_{
nullptr};
Definition: static-multimap-view.h:23
Definition: bit-population-count.h:20