Updated docs.

[SVN r77899]
This commit is contained in:
Lorenzo Caminiti committed 2012-04-10 20:42:53 +00:00
1 parent 9e7ccedcfe
commit f6beb74abb
12 files changed
+175 -92

No files matched your search

+5 -1
View File
@@ -9,10 +9,14 @@
#define IDENTITY_HPP_
#include <boost/function.hpp>
//[identity_typeof
#include <boost/typeof/std/string.hpp> // No need to register `boost::function`.
//]
#include <string>
//[identity_decls
const std::string& identity_s(const std::string& x) { return x; } // As pointer.
const std::string& identity_s(const std::string& x) // Function (as pointer).
{ return x; }
int identity_i_impl(int x) { return x; }
int (&identity_i)(int) = identity_i_impl; // Function reference.