Tree. remove redunant function

This commit is contained in:
IlyaShurupov 2024-04-01 13:46:13 +03:00 committed by Ilya Shurupov
parent 715175085e
commit 4d381d62e4
4 changed files with 34 additions and 22 deletions

View file

@ -12,6 +12,9 @@ namespace tp {
template <typename Type>
using InitialierList = std::initializer_list<Type>;
template <typename tType, typename tTypeResult>
using ShouldPassByValue = typename TypeSelect<(sizeof(tType) > sizeof(tp::alni)), const tType&, tType>::Result;
// Selects whether to pass by constant reference or by value
template <typename tType>
using SelectValueOrReference = typename TypeSelect<(sizeof(tType) > sizeof(tp::alni)), const tType&, tType>::Result;