ENH: add subsetList/inplaceSubsetList functions with unary predicate

- these are suitable for use with lambda functions.

- Deprecate the unused 3-parameter version of subset/inplaceSubset.

- Deprecate initList and initListList in favour of initializer_list

STYLE: adjust some comments, remove dead code in regionSizeDistribution.C
This commit is contained in:
Mark Olesen
2017-03-07 17:00:30 +01:00
parent 865f09e623
commit b7dc6d0441
6 changed files with 135 additions and 82 deletions

View File

@ -42,24 +42,6 @@ namespace Foam
dictionary
);
}
//- Plus op for FixedList<scalar>
template<class T, unsigned Size>
class ListPlusEqOp
{
public:
void operator()
(
FixedList<T, Size>& x,
const FixedList<T, Size>& y
) const
{
forAll(x, i)
{
x[i] += y[i];
}
}
};
}