algo: remove doubly qualified root namespace

This commit is contained in:
Danny Robson 2018-09-21 12:25:02 +10:00
parent c814e0001e
commit 483c43c732
3 changed files with 6 additions and 6 deletions

View File

@ -15,4 +15,4 @@
// //
// this particular instantiation isn't necessarily required by any user, it's // this particular instantiation isn't necessarily required by any user, it's
// just convenient. // just convenient.
template void cruft::cruft::sort::soa (int*, int*, bool (*)(int,int), double*); template void cruft::sort::soa (int*, int*, bool (*)(int,int), double*);

View File

@ -19,7 +19,7 @@
#include <vector> #include <vector>
namespace cruft::cruft::sort { namespace cruft::sort {
namespace detail { namespace detail {
template <typename IndexA, typename IndexB, typename RandomIt> template <typename IndexA, typename IndexB, typename RandomIt>
void void

View File

@ -37,7 +37,7 @@ main (int, char**)
std::array<int,3> values { 3, 4, 5 }; std::array<int,3> values { 3, 4, 5 };
const std::array<int,3> expected = { 4, 5, 3 }; const std::array<int,3> expected = { 4, 5, 3 };
cruft::cruft::sort::reorder ( cruft::sort::reorder (
std::begin (indices), std::end (indices), std::begin (indices), std::end (indices),
std::begin (values) std::begin (values)
); );
@ -59,7 +59,7 @@ main (int, char**)
{ 9, 10, 11 }, { 9, 10, 11 },
}; };
cruft::cruft::sort::reorder ( cruft::sort::reorder (
std::begin (indices), std::end (indices), std::begin (indices), std::end (indices),
std::begin (values[0]), std::begin (values[0]),
std::begin (values[1]), std::begin (values[1]),
@ -84,7 +84,7 @@ main (int, char**)
}; };
for (auto &t: TESTS) { for (auto &t: TESTS) {
cruft::cruft::sort::soa ( cruft::sort::soa (
std::begin (t.values), std::end (t.values), std::begin (t.values), std::end (t.values),
[] (int a, int b) { return a < b; } [] (int a, int b) { return a < b; }
); );
@ -102,7 +102,7 @@ main (int, char**)
const std::array<char,3> expected_c { 'b', 'c', 'a' }; const std::array<char,3> expected_c { 'b', 'c', 'a' };
const std::array<float,3> expected_f { 1.f, 2.f, 0.f }; const std::array<float,3> expected_f { 1.f, 2.f, 0.f };
cruft::cruft::sort::soa ( cruft::sort::soa (
std::begin (value_i), std::end (value_i), std::begin (value_i), std::end (value_i),
[] (const auto &i, const auto &j) { return i < j; }, [] (const auto &i, const auto &j) { return i < j; },
std::begin (value_c), std::begin (value_c),