示例#1
0
 constexpr operator std::pair<X, Y>() const
 {
     return {begin(), end()};
 }
示例#2
0
 constexpr bool empty() const
 {
     return begin() == end();
 }
示例#3
0
 iterator begin()
 { return base_.begin(); }
示例#4
0
 iterator_range &operator=(iterator_range<X, Y> rng)
 {
     begin() = detail::move(rng).begin();
     end() = detail::move(rng).end();
     return *this;
 }
示例#5
0
 void sort()
 { std::stable_sort( base_.begin(), base_.end(), comparator() ); }
示例#6
0
 std::pair< const_iterator, const_iterator > equal_range( key_type const& k) const
 {
     return std::equal_range(
             base_.begin(), base_.end(),
             k, comparator() );
 }
示例#7
0
 const_iterator upper_bound( key_type const& k) const
 {
     return std::upper_bound(
             base_.begin(), base_.end(),
             k, comparator() );
 }
示例#8
0
 iterator lower_bound( key_type const& k)
 {
     return std::lower_bound(
             base_.begin(), base_.end(),
             k, comparator() );
 }
示例#9
0
 const_iterator begin() const
 { return base_.begin(); }