Boost C++ Libraries

...one 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.
PrevUpHomeNext

Class ambiguous_option

boost::program_options::ambiguous_option

Synopsis

// In header: <boost/program_options/errors.hpp>


class ambiguous_option :
  public boost::program_options::error_with_no_option_name
{
public:
  // construct/copy/destruct
  ambiguous_option(const std::vector< std::string > &);
  ~ambiguous_option();

  // public member functions
  const std::vector< std::string > & alternatives() const;

  // protected member functions
  void substitute_placeholders(const std::string &) const;
};

Description

Class thrown when there's ambiguity amoung several possible options.

ambiguous_option public construct/copy/destruct

  1. ambiguous_option(const std::vector< std::string > & xalternatives);
  2. ~ambiguous_option();

ambiguous_option public member functions

  1. const std::vector< std::string > & alternatives() const;

ambiguous_option protected member functions

  1. void substitute_placeholders(const std::string & error_template) const;

    Makes all substitutions using the template


PrevUpHomeNext