mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
Use forward_list over list
This commit is contained in:
parent
67b5d48095
commit
8dc4ffbae7
@ -18,7 +18,7 @@ namespace llarp
|
||||
[&ret](const ConfigParser::Section_t &s) -> bool {
|
||||
for(const auto &item : s)
|
||||
{
|
||||
ret.emplace_back(item.first, item.second);
|
||||
ret.emplace_after(ret.end(), item.first, item.second);
|
||||
}
|
||||
return true;
|
||||
}))
|
||||
|
@ -1,14 +1,15 @@
|
||||
#ifndef LLARP_CONFIG_HPP
|
||||
#define LLARP_CONFIG_HPP
|
||||
|
||||
#include <list>
|
||||
#include <forward_list>
|
||||
#include <string>
|
||||
|
||||
namespace llarp
|
||||
{
|
||||
struct Config
|
||||
{
|
||||
using section_t = std::list< std::pair< std::string, std::string > >;
|
||||
using section_t =
|
||||
std::forward_list< std::pair< std::string, std::string > >;
|
||||
|
||||
section_t router;
|
||||
section_t network;
|
||||
|
Loading…
Reference in New Issue
Block a user