mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 05:47:17 +01:00
use generic container
This commit is contained in:
parent
dc914b1806
commit
9cb8e194b0
3
Queue.h
3
Queue.h
|
@ -25,7 +25,8 @@ namespace util
|
||||||
m_NonEmpty.notify_one ();
|
m_NonEmpty.notify_one ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Put (const std::vector<Element>& vec)
|
template<template<typename, typename...>class Container, typename... R>
|
||||||
|
void Put (const Container<Element, R...>& vec)
|
||||||
{
|
{
|
||||||
if (!vec.empty ())
|
if (!vec.empty ())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue