formatting

This commit is contained in:
2020-06-10 17:29:28 +02:00
parent 200186ddde
commit ab72d342c9
16 changed files with 188 additions and 207 deletions

View File

@ -1,6 +1,6 @@
#pragma once
#include "TypeTraits.h"
#include "ToString.h"
#include "TypeTraits.h"
#include <array>
#include <cassert>
#include <iostream>
@ -189,7 +189,4 @@ std::ostream &operator<<(std::ostream &os,
return os << ToString(c);
}
} // namespace sls

View File

@ -264,10 +264,10 @@ ToString(const T &obj) {
}
template <typename T>
std::vector<T> StringTo(const std::vector<std::string>& strings){
std::vector<T> StringTo(const std::vector<std::string> &strings) {
std::vector<T> result;
result.reserve(strings.size());
for (const auto& s : strings)
for (const auto &s : strings)
result.push_back(StringTo<T>(s));
return result;
}

View File

@ -3,10 +3,10 @@
#define APILIB 0x200409
#define APIRECEIVER 0x200409
#define APIGUI 0x200409
#define APIEIGER 0x200610
#define APICTB 0x200610
#define APIGOTTHARD 0x200610
#define APIEIGER 0x200610
#define APICTB 0x200610
#define APIGOTTHARD 0x200610
#define APIGOTTHARD2 0x200610
#define APIJUNGFRAU 0x200610
#define APIMYTHEN3 0x200610
#define APIMOENCH 0x200610
#define APIJUNGFRAU 0x200610
#define APIMYTHEN3 0x200610
#define APIMOENCH 0x200610

View File

@ -3,8 +3,8 @@
#include "catch.hpp"
#include <array>
#include <vector>
#include <sstream>
#include <vector>
using sls::StaticVector;
TEST_CASE("StaticVector is a container") {

View File

@ -31,7 +31,6 @@ TEST_CASE("copy a long string") {
}
#endif
TEST_CASE("split a string with end delimiter") {
std::string s("abra+kadabra+");
auto r = sls::split(s, '+');
@ -49,7 +48,6 @@ TEST_CASE("split a string without end delimiter") {
REQUIRE(r[2] == "filibom");
}
TEST_CASE("Remove char from string") {
char str[] = "sometest";
sls::removeChar(str, 'e');