about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.cc
diff options
context:
space:
mode:
authorThomas Backman <serenity@exscape.org>2014-06-03 16:11:47 +0200
committerThomas Backman <serenity@exscape.org>2014-06-03 16:11:47 +0200
commit3b5d6fd25486b29a70adfda6cb917ced614bc6d2 (patch)
treea0ddcc7a971f62d52d07bad9170eec327714fcb5 /src/test/codegen/stack-alloc-string-slice.cc
parent918dbfea60e84868537a1951ad38a782502d39c2 (diff)
downloadrust-3b5d6fd25486b29a70adfda6cb917ced614bc6d2.tar.gz
rust-3b5d6fd25486b29a70adfda6cb917ced614bc6d2.zip
Add next_permutation and prev_permutation onto MutableOrdVector<T>.
Unlike ImmutableClonableVector::permutations() which returns an iterator,
cloning the entire array each iteration, these methods mutate the vector in-place.
For that reason, these methods are much faster; between 35-55 times faster,
depending on the benchmark. They also generate permutations in lexicographical order.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.cc')
0 files changed, 0 insertions, 0 deletions