Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Data Structures | Typedefs | Functions
alg3.cpp File Reference
#include <algorithm>
#include <functional>
#include <iostream>
#include <iterator>
#include <list>
#include <string>
#include <vector>
#include <ctype.h>
#include <cstring>
#include <examples.h>
Include dependency graph for alg3.cpp:

Go to the source code of this file.

Data Structures

struct  iotaGenerator
 
struct  RandomInteger
 

Typedefs

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

Functions

bool isEven (int n)
 
void reverse_example ()
 
void replace_example ()
 
void rotate_example ()
 
void partition_example ()
 
bool nameCompare (const char *a, const char *b)
 
void permutation_example ()
 
void inplace_merge_example ()
 
void random_shuffle_example ()
 
int main ()
 

Typedef Documentation

◆ ostrm_iter_type

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

alg3.cpp - Sample programs for STL generic algorihtms that modify their arguments in place.

$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-2006 Rogue Wave Software.

Definition at line 45 of file alg3.cpp.

Function Documentation

◆ inplace_merge_example()

void inplace_merge_example ( )

Definition at line 277 of file alg3.cpp.

◆ isEven()

bool isEven ( int  n)

Definition at line 80 of file alg3.cpp.

◆ main()

int main ( void  )

Definition at line 348 of file alg3.cpp.

◆ nameCompare()

bool nameCompare ( const char *  a,
const char *  b 
)

Definition at line 231 of file alg3.cpp.

◆ partition_example()

void partition_example ( )

Definition at line 200 of file alg3.cpp.

◆ permutation_example()

void permutation_example ( )

Definition at line 238 of file alg3.cpp.

◆ random_shuffle_example()

void random_shuffle_example ( )

Definition at line 317 of file alg3.cpp.

◆ replace_example()

void replace_example ( )

Definition at line 119 of file alg3.cpp.

◆ reverse_example()

void reverse_example ( )

Definition at line 86 of file alg3.cpp.

◆ rotate_example()

void rotate_example ( )

Definition at line 167 of file alg3.cpp.