This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <algorithm> | |
template <class Iterator> | |
inline void BubbleSort(Iterator begin, Iterator end) { | |
for (Iterator i = begin; i != end; ++i) | |
for (Iterator j = begin; j < i; ++j) | |
if (*i < *j) | |
std::iter_swap(i, j); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef STRING_CONSTANT_H | |
#define STRING_CONSTANT_H | |
#include <cstddef> | |
#include <stdexcept> | |
#include <string> | |
#include <type_traits> | |
#include <utility> |