notify when value will/did change.
bbb::notifier<int> x;
bbb::notifier<std::string> str;
...
x.value_will_change([](int from) { /* DO SOMETHING */ });
x.value_did_change([](int to) { /* DO SOMETHING */ });
str.value_will_change([](const std::string &from) { /* DO SOMETHING */ });
str.value_did_change([](const std::string &to) { /* DO SOMETHING */ });
str = "ABC";
str += "DEF";
str[0] = "C";
int
, unsigned char
, float
, etc...
std::string
, std::wstring
, etc...
T == arithmetic type
T == basic_string<char_type>