xrpld
Toggle main menu visibility
Loading...
Searching...
No Matches
include
xrpl
tx
paths
detail
FlatSets.h
1
#pragma once
2
3
#include <boost/container/flat_set.hpp>
4
5
namespace
xrpl
{
6
14
template
<
class
T>
15
void
16
setUnion
(boost::container::flat_set<T>& dst, boost::container::flat_set<T>
const
& src)
17
{
18
if
(src.empty())
19
return
;
20
21
dst.reserve(dst.size() + src.size());
22
dst.insert(boost::container::ordered_unique_range_t{}, src.begin(), src.end());
23
}
24
25
}
// namespace xrpl
xrpl
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition
algorithm.h:5
xrpl::setUnion
void setUnion(boost::container::flat_set< T > &dst, boost::container::flat_set< T > const &src)
Given two flat sets dst and src, compute dst = dst union src.
Definition
FlatSets.h:16
Generated by
1.17.0