mirror of
https://github.com/celisej567/abaddon.git
synced 2026-01-04 10:10:03 +03:00
syntax oopsy
This commit is contained in:
3
util.hpp
3
util.hpp
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <cctype>
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <vector>
|
||||
@@ -9,7 +10,7 @@
|
||||
#include <iomanip>
|
||||
|
||||
template<typename T>
|
||||
inline void AlphabeticalSort(typename T start, typename T end, std::function<std::string(const typename std::iterator_traits<T>::value_type &)> get_string) {
|
||||
inline void AlphabeticalSort(T start, T end, std::function<std::string(const typename std::iterator_traits<T>::value_type &)> get_string) {
|
||||
std::sort(start, end, [&](const auto &a, const auto &b) -> bool {
|
||||
const std::string &s1 = get_string(a);
|
||||
const std::string &s2 = get_string(b);
|
||||
|
||||
Reference in New Issue
Block a user