Skip to content

Commit

Permalink
Merge pull request #3074 from burner/algo_cmp_equal
Browse files Browse the repository at this point in the history
std.algo.cmp.equal docu
  • Loading branch information
H. S. Teoh committed Mar 19, 2015
2 parents 80e5911 + 078b7b1 commit a54a3e2
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions std/algorithm/comparison.d
Expand Up @@ -685,11 +685,18 @@ Compares two ranges for equality, as defined by predicate $(D pred)
template equal(alias pred = "a == b")
{
/++
Returns $(D true) if and only if the two ranges compare equal element
for element, according to binary predicate $(D pred). The ranges may
have different element types, as long as $(D pred(a, b)) evaluates to
$(D bool) for $(D a) in $(D r1) and $(D b) in $(D r2). Performs
$(BIGOH min(r1.length, r2.length)) evaluations of $(D pred).
This function compares to ranges for equality. The ranges may have
different element types, as long as $(D pred(a, b)) evaluates to $(D bool)
for $(D a) in $(D r1) and $(D b) in $(D r2).
Performs $(BIGOH min(r1.length, r2.length)) evaluations of $(D pred).
Params:
r1 = The first range to be compared.
r2 = The second range to be compared.
Returns:
$(D true) if and only if the two ranges compare equal element
for element, according to binary predicate $(D pred).
See_Also:
$(WEB sgi.com/tech/stl/_equal.html, STL's _equal)
Expand Down

0 comments on commit a54a3e2

Please sign in to comment.