placeholder.qbk 794 B

123456789101112131415161718192021222324
  1. [/==============================================================================
  2. Copyright (C) 2001-2010 Joel de Guzman
  3. Copyright (C) 2001-2005 Dan Marsden
  4. Copyright (C) 2001-2010 Thomas Heller
  5. Distributed under the Boost Software License, Version 1.0. (See accompanying
  6. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. ===============================================================================/]
  8. [section Placeholder Unification]
  9. Phoenix uses `boost::is_placeholder` for recognizing placeholders:
  10. template <typename T>
  11. struct is_placeholder
  12. {
  13. static const int value = 0;
  14. };
  15. To adapt your own placeholder, the nested value needs to be greater than 0
  16. for your types. This is done by specializing this trait.
  17. [endsect]