• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright John Maddock 2017.
2//  Use, modification and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_NO_CXX98_RANDOM_SHUFFLE
9//  TITLE:         std::random_shuffle
10//  DESCRIPTION:   The std lib has random_shuffle.
11
12#include <algorithm>
13
14namespace boost_no_cxx98_random_shuffle{
15
16int test()
17{
18   int my_array[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
19   std::random_shuffle(&my_array[0], &my_array[9] );
20   return 0;
21}
22
23}
24