Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Typedefs | Functions
alg7.cpp File Reference
#include <rw/_config.h>
#include <vector>
#include <deque>
#include <list>
#include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <examples.h>
Include dependency graph for alg7.cpp:

Go to the source code of this file.

Data Structures

class  iotaGen
 

Typedefs

typedef std::ostream_iterator< int, char, std::char_traits< char > > Iter
 

Functions

int randomValue ()
 
void sortExample ()
 
void partial_sort_example ()
 
void nth_element_example ()
 
void binary_search_example ()
 
void merge_example ()
 
void set_example ()
 
void heap_example ()
 
int main ()
 

Typedef Documentation

◆ Iter

typedef std::ostream_iterator<int, char, std::char_traits<char> > Iter

Definition at line 64 of file alg7.cpp.

Function Documentation

◆ binary_search_example()

void binary_search_example ( )

Definition at line 147 of file alg7.cpp.

◆ heap_example()

void heap_example ( )

Definition at line 262 of file alg7.cpp.

◆ main()

int main ( void  )

Definition at line 291 of file alg7.cpp.

◆ merge_example()

void merge_example ( )

Definition at line 176 of file alg7.cpp.

◆ nth_element_example()

void nth_element_example ( )

Definition at line 127 of file alg7.cpp.

◆ partial_sort_example()

void partial_sort_example ( )

Definition at line 94 of file alg7.cpp.

◆ randomValue()

int randomValue ( )

alg7.cpp - Illustrate the use of the sort related generic algorithms.

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2008 Rogue Wave Software, Inc.

Definition at line 50 of file alg7.cpp.

◆ set_example()

void set_example ( )

Definition at line 216 of file alg7.cpp.

◆ sortExample()

void sortExample ( )

Definition at line 66 of file alg7.cpp.