Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <set>
- using std::multiset;
- #include <kickstart/all.hpp>
- using namespace kickstart::all; // array, out, with_exceptions_displayed
- void cpp_main()
- {
- const auto data = array
- {
- 2, 5, 76, 53, 2, 89, 4, 76, 2, 2, 43, 53, 53, 2, 89, 76, 76, 99
- };
- const auto values = multiset<int>( data.begin(), data.end() );
- for( const int v: values ) {
- out << v << ' ';
- }
- out << endl;
- // Output: 2 2 2 2 2 4 5 43 53 53 53 76 76 76 76 89 89 99
- }
- auto main() -> int { return with_exceptions_displayed( cpp_main ); }
RAW Paste Data