C++ 11, Example of auto for function declaration
1 2 template <class T> auto add(T t, U u) -> decltype(t + u) is equal to 1 2 template <class T> decltype((*(T*)0) + (*(U*)0)) add(T t, U u);
1 2 template <class T> auto add(T t, U u) -> decltype(t + u) is equal to 1 2 template <class T> decltype((*(T*)0) + (*(U*)0)) add(T t, U u);
http://blogs.msdn.com/b/dotnet/archive/2013/04/04/net-memory-allocation-profiling-with-visual-studio-2012.aspx
http://ericlippert.com http://ericlippert.com/category/monads/
http://msdn.microsoft.com/en-us/magazine/jj863136.aspx
1 2 3 4 5 6 7 8 9 bool EC_EnableMulticastLoopBack(SOCKET socket, bool IPv6, bool enable) { // enable/disable loop char loop = enable ? 1 : 0; if ...