mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 07:25:53 +02:00
Tuple assignment very slow #2383
This commit is contained in:
parent
98fd0b4124
commit
00abd06f75
@ -32,7 +32,7 @@ namespace Poco {
|
|||||||
template <class Head, class Tail>
|
template <class Head, class Tail>
|
||||||
struct TypeList;
|
struct TypeList;
|
||||||
|
|
||||||
|
|
||||||
struct NullTypeList
|
struct NullTypeList
|
||||||
{
|
{
|
||||||
enum
|
enum
|
||||||
@ -86,8 +86,8 @@ struct TypeList
|
|||||||
{
|
{
|
||||||
if (this != &tl)
|
if (this != &tl)
|
||||||
{
|
{
|
||||||
TypeList tmp(tl);
|
head = tl.head;
|
||||||
swap(tmp);
|
tail = tl.tail;
|
||||||
}
|
}
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
@ -110,12 +110,6 @@ struct TypeList
|
|||||||
return tail < tl.tail;
|
return tail < tl.tail;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void swap(TypeList& tl)
|
|
||||||
{
|
|
||||||
std::swap(head, tl.head);
|
|
||||||
std::swap(tail, tl.tail);
|
|
||||||
}
|
|
||||||
|
|
||||||
HeadType head;
|
HeadType head;
|
||||||
TailType tail;
|
TailType tail;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user