mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Removed redundant template function
This commit is contained in:
parent
b7619d2531
commit
2d43d1baf3
@ -39,17 +39,6 @@ SOFTWARE.
|
||||
|
||||
namespace etl
|
||||
{
|
||||
//***************************************************************************
|
||||
/// exchange
|
||||
//***************************************************************************
|
||||
template <typename T, typename U = T>
|
||||
T exchange(T& object, U& new_value)
|
||||
{
|
||||
T old_value = object;
|
||||
object = new_value;
|
||||
return old_value;
|
||||
}
|
||||
|
||||
//***************************************************************************
|
||||
/// exchange (const)
|
||||
//***************************************************************************
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user