Home » U++ Library support » U++ Core » Implementation of Vector::Add()
Implementation of Vector::Add() [message #52203] |
Fri, 09 August 2019 04:26 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
Vector::Add() (and similar methods) can be implemented via Vector::Add(T&& x=T()). That reduces amount of code.
Similar methods include:
Array::Add()
BiVector::AddHead(), BiVector::AddTail()
AMap::Add(K&& k), Add(const K& k), FindAdd(const K& k), FindAdd(K&& k), Put(const K& k), e.t.c.
ArrayMap::Add(const K& k), Add(K&& k)
FixedAMap::Add(const K& k)
It looks like half of methods of AMap can be eliminated ...
Just my two cents ...
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Sun May 05 06:55:36 CEST 2024
Total time taken to generate the page: 0.01850 seconds
|