File: c%2B%2B11-initializer-list.cpp

package info (click to toggle)
libsdsl 2.1.1%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,020 kB
  • sloc: cpp: 42,286; makefile: 1,171; ansic: 318; sh: 201; python: 27
file content (24 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (19)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <sdsl/suffix_trees.hpp>
#include <iostream>
#include <algorithm>

using namespace sdsl;
using namespace std;

int main()
{
    int_vector<8> b = {'c','d','a','b','d'};
    int_vector<> a = {1,8,3,15,5};

    for (auto c : b) {
        cout << c;
    } cout << endl;
    for (auto x : a) {
        cout << x << ",";
    }
    cout << endl;
    sort(a.begin(), a.end());
    for (auto x: a) {
        cout << x << ",";
    }
}