Function call operator

Nasza ocena:

3
Wyświetleń: 525
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Function call operator - strona 1

Fragment notatki:

Function call operator result T::operator()(args);  Any number of arguments, overloadable  Exception: function call operator may have default arguments  We may use an object as if it were a function T ob; ob();  we use it - when there is no appropriate operator, that we needed - there is a dominant method for the class (it now has no name, but is easier to call - for example class counter and method of incrementing) ... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz