Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#7926 closed Bugs (fixed)

[Range] missing prototypes with predicate in lower_bound and upper_bound algorithm docs

Reported by: Kinugasa Tomonobu<kinugasa.tomonobu@…> Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.52.0 Severity: Problem
Keywords: Cc:

Description

http://www.boost.org/doc/libs/1_52_0/libs/range/doc/html/range/reference/algorithms/non_mutating/lower_bound.html http://www.boost.org/doc/libs/1_52_0/libs/range/doc/html/range/reference/algorithms/non_mutating/upper_bound.html

missing prototypes with predicate version in lower_bound and upper_bound documents.

should add such as:

  • lower_bound
    template<
        class ForwardRange,
        class Value,
        class SortPredicate
        >
    typename range_iterator<const ForwardRange>::type
    lower_bound(ForwardRange& rng, Value val, SortPredicate pred);
    
    template<
        range_return_value re,
        class ForwardRange,
        class Value,
        class SortPredicate
        >
    typename range_return<const ForwardRange,re>::type
    lower_bound(ForwardRange& rng, Value val, SortPredicate pred);
    
  • upper_bound
    template<
        class ForwardRange,
        class Value,
        class SortPredicate
        >
    typename range_iterator<const ForwardRange>::type
    upper_bound(ForwardRange& rng, Value val, SortPredicate pred);
    
    template<
        range_return_value re,
        class ForwardRange,
        class Value,
        class SortPredicate
        >
    typename range_return<const ForwardRange,re>::type
    upper_bound(ForwardRange& rng, Value val, SortPredicate pred);
    

Change History (3)

comment:1 by Nathan Ridge, 10 years ago

Resolution: fixed
Status: newclosed

(In [82621]) [range] fixed #7926 (missing prototypes for lower_bound and upper_bound in docs)

comment:2 by Nathan Ridge, 10 years ago

(In [82622]) [range] merge documentation fix from trunk (refs #7926)

comment:3 by Nathan Ridge, 10 years ago

Fixed for 1.53 - thanks!

Note: See TracTickets for help on using tickets.