Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
Diffstat (limited to 'base')
-rw-r--r--base/move_to_front.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/move_to_front.cpp b/base/move_to_front.cpp
index 6091c3f232..10d0a28177 100644
--- a/base/move_to_front.cpp
+++ b/base/move_to_front.cpp
@@ -4,6 +4,7 @@
#include <algorithm>
#include <cstring>
+#include <numeric>
using namespace std;
@@ -14,8 +15,7 @@ size_t constexpr MoveToFront::kNumBytes;
MoveToFront::MoveToFront()
{
- for (size_t i = 0; i < kNumBytes; ++i)
- m_order[i] = i;
+ iota(m_order.begin(), m_order.end(), 0);
}
uint8_t MoveToFront::Transform(uint8_t b)