Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

Function template collect_unrecognized

boost::program_options::collect_unrecognized —


template<typename charT> 
std::vector< std::basic_string< charT > > 
collect_unrecognized(const std::vector< basic_option< charT > > & options, 
enum collect_unrecognized_mode mode);


Collects the original tokens for all named options with 'unregistered' flag set. If 'mode' is 'include_positional' also collects all positional options. Returns the vector of origianl tokens for all collected options.

Copyright 2002-2004 Vladimir Prus