Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Functions
alg2.cpp File Reference
#include <vector>
#include <list>
#include <algorithm>
#include <string>
#include <cstring>
#include <iostream>
#include <examples.h>
Include dependency graph for alg2.cpp:

Go to the source code of this file.

Functions

void split (const std::string &text, const std::string &separators, std::list< std::string, std::allocator< std::string > > &words)
 
bool isLeapYear (unsigned int year)
 
void find_test ()
 
void find_adjacent_test ()
 
void search_test ()
 
void max_min_example ()
 
void mismatch_test (const char *a, const char *b)
 
int main ()
 

Function Documentation

◆ find_adjacent_test()

void find_adjacent_test ( )

Definition at line 89 of file alg2.cpp.

◆ find_test()

void find_test ( )

Definition at line 63 of file alg2.cpp.

◆ isLeapYear()

bool isLeapYear ( unsigned int  year)

Definition at line 56 of file alg2.cpp.

◆ main()

int main ( void  )

Definition at line 200 of file alg2.cpp.

◆ max_min_example()

void max_min_example ( )

Definition at line 129 of file alg2.cpp.

◆ mismatch_test()

void mismatch_test ( const char *  a,
const char *  b 
)

Definition at line 170 of file alg2.cpp.

◆ search_test()

void search_test ( )

Definition at line 110 of file alg2.cpp.

◆ split()

void split ( const std::string &  text,
const std::string &  separators,
std::list< std::string, std::allocator< std::string > > &  words 
)

alg2.cpp - Examples using STL generic algorithms that search for elements that satisfy a condition.

$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 40 of file alg2.cpp.