Run clang-format
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
std::map<Key,Value> threadsafe_lookup_table::get_map() const
|
||||
std::map<Key, Value>
|
||||
threadsafe_lookup_table::get_map() const
|
||||
{
|
||||
std::vector<std::unique_lock<boost::shared_mutex> > locks;
|
||||
for(unsigned i=0;i<buckets.size();++i)
|
||||
{
|
||||
locks.push_back(
|
||||
std::unique_lock<boost::shared_mutex>(buckets[i].mutex));
|
||||
std::vector<std::unique_lock<boost::shared_mutex>> locks;
|
||||
for (unsigned i = 0; i < buckets.size(); ++i) {
|
||||
locks.push_back(std::unique_lock<boost::shared_mutex>(buckets[i].mutex));
|
||||
}
|
||||
std::map<Key, Value> res;
|
||||
for (unsigned i = 0; i < buckets.size(); ++i) {
|
||||
for (bucket_iterator it = buckets[i].data.begin();
|
||||
it != buckets[i].data.end();
|
||||
++it) {
|
||||
res.insert(*it);
|
||||
}
|
||||
std::map<Key,Value> res;
|
||||
for(unsigned i=0;i<buckets.size();++i)
|
||||
{
|
||||
for(bucket_iterator it=buckets[i].data.begin();
|
||||
it!=buckets[i].data.end();
|
||||
++it)
|
||||
{
|
||||
res.insert(*it);
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user