replace.cpp 706 B

123456789101112131415161718192021222324252627
  1. // Copyright Aleksey Gurtovoy 2000-2004
  2. // Copyright David Abrahams 2003-2004
  3. //
  4. // Distributed under the Boost Software License, Version 1.0.
  5. // (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // See http://www.boost.org/libs/mpl for documentation.
  9. // $Id$
  10. // $Date$
  11. // $Revision$
  12. #include <boost/mpl/replace.hpp>
  13. #include <boost/mpl/list.hpp>
  14. #include <boost/mpl/equal.hpp>
  15. #include <boost/mpl/aux_/test.hpp>
  16. MPL_TEST_CASE()
  17. {
  18. typedef list<int,float,char,float,float,double> types;
  19. typedef replace< types,float,double >::type result;
  20. typedef list<int,double,char,double,double,double> answer;
  21. MPL_ASSERT(( equal< result,answer > ));
  22. }