template <typename T1, typename T2>
auto max (T1 a, T2 b) -> decltype(b<a?a:b);
Run Code Online (Sandbox Code Playgroud)
template <typename T1, typename T2>
auto max (T1 a, T2 b) -> decltype(true?a:b);
Run Code Online (Sandbox Code Playgroud)
I do not understand why these two code snippets can have the same effect. Plz give me some hint and a underlying explanation.
Cheers.
AVL树与自平衡二叉搜索树相同.AVL代表什么?这与发明人的名字有关吗?