File: simple.cc

package info (click to toggle)
plf-colony 7.17-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 336 kB
  • sloc: cpp: 5,905; makefile: 7
file content (18 lines) | stat: -rw-r--r-- 331 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <stdio.h>
#include <plf_colony.h>
#include <string>

int main()
{
    plf::colony<int> k\u00F6ln;
    for (int i=99; i>=0; --i)
        k\u00F6ln.insert(i);

    k\u00F6ln.sort();

    for (auto c = k\u00F6ln.begin(); c!=k\u00F6ln.end(); c=k\u00F6ln.erase(c))
        printf(" %d", *c);
    printf("\n");

    return 0;
}