mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
sentence fix
This commit is contained in:
parent
eefcb1e0a3
commit
47c53f86ba
1 changed files with 5 additions and 6 deletions
|
@ -1,10 +1,9 @@
|
|||
The keyword tt(decltype) is a tool for determining the type of an
|
||||
expression. To use them the expression for which tt(decltype) must be
|
||||
available. But what if a function template defines a tt(typename Class)
|
||||
template parameter and the function template should use the return type of
|
||||
the function tt(Class::fun())? Since two classes may define members tt(fun)
|
||||
having different return types, the return type to use is not immediately
|
||||
available.
|
||||
expression. To use it an expression to which tt(decltype) is applied must be
|
||||
available. But what if a function template defines a tt(typename Class)
|
||||
template parameter and the function template should use the return type of the
|
||||
function tt(Class::fun())? Since two classes may define members tt(fun) having
|
||||
different return types, the return type to use is not immediately available.
|
||||
|
||||
These kinds of problems are solved by using the function template
|
||||
hi(declval)tt(std::declval), defined in the tthi(utility) header
|
||||
|
|
Loading…
Reference in a new issue