От: | PM | ||
Дата: | 14.09.14 18:25 | ||
Оценка: |
void addElement(T, bool replace);
enum ReplaceOrNot {
Replace, DontReplace
};
void addElement2(T, ReplaceOrNot replace);
typedef bool ReplaceOnAdd;
void addElement3(T, bool replace);
addElement3(1, ReplaceOnAdd(true));