/Src/Dependencies/Boost/libs/phoenix/doc/inside/placeholder.qbk
http://hadesmem.googlecode.com/ · text · 24 lines · 17 code · 7 blank · 0 comment · 0 complexity · a01e9a1134d0b779c43ba9bcadb1d375 MD5 · raw file
- [/==============================================================================
- Copyright (C) 2001-2010 Joel de Guzman
- Copyright (C) 2001-2005 Dan Marsden
- Copyright (C) 2001-2010 Thomas Heller
- Distributed under the Boost Software License, Version 1.0. (See accompanying
- file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
- ===============================================================================/]
- [section Placeholder Unification]
- Phoenix uses `boost::is_placeholder` for recognizing placeholders:
- template <typename T>
- struct is_placeholder
- {
- static const int value = 0;
- };
- To adapt your own placeholder, the nested value needs to be greater than 0
- for your types. This is done by specializing this trait.
- [endsect]