CPP08 1.0
|
Tests and verifies the behaviour of the easyfind template function. [詳解]
関数 | |
template<typename T > | |
void | printContainer (const T &container, const std::string &name) |
Helper function to display container elements to standard output. | |
int | main () |
Program entry point. | |
Tests and verifies the behaviour of the easyfind template function.
This program tests the easyfind function for the following two container types.
For each container, two scenarios are tested: when the specified element is found, and when it is not found and NotFoundException is thrown.
main.cpp に定義があります。
int main | ( | ) |
void printContainer | ( | const T & | container, |
const std::string & | name | ||
) |