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

Go to the source code of this file.

Data Structures

class  iotaGen
 

Typedefs

typedef std::ostream_iterator< int, char, std::char_traits< char > > int_ostrm_iter
 
typedef std::ostream_iterator< std::string, char, std::char_traits< char > > str_ostrm_iter
 
typedef std::ostream_iterator< char, char, std::char_traits< char > > char_ostrm_iter
 

Functions

void fill_example ()
 
void copy_example ()
 
std::string generateLabel ()
 
void generate_example ()
 
void swap_example ()
 
int main ()
 

Typedef Documentation

◆ char_ostrm_iter

typedef std::ostream_iterator<char, char, std::char_traits<char> > char_ostrm_iter

Definition at line 46 of file alg1.cpp.

◆ int_ostrm_iter

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

alg1.cpp - Example program for STL generic algorithms that initialize sequences.

$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 42 of file alg1.cpp.

◆ str_ostrm_iter

typedef std::ostream_iterator<std::string, char, std::char_traits<char> > str_ostrm_iter

Definition at line 44 of file alg1.cpp.

Function Documentation

◆ copy_example()

void copy_example ( )

Definition at line 105 of file alg1.cpp.

◆ fill_example()

void fill_example ( )

Definition at line 62 of file alg1.cpp.

◆ generate_example()

void generate_example ( )

Definition at line 164 of file alg1.cpp.

◆ generateLabel()

std::string generateLabel ( )

Definition at line 151 of file alg1.cpp.

◆ main()

int main ( void  )

Definition at line 230 of file alg1.cpp.

◆ swap_example()

void swap_example ( )

Definition at line 190 of file alg1.cpp.