Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/program_options/options_description.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
59 Here, the static type returned by 'parameter' should be derived | 59 Here, the static type returned by 'parameter' should be derived |
60 from value_semantic. | 60 from value_semantic. |
61 | 61 |
62 Alas, derived->base conversion for auto_ptr does not really work, | 62 Alas, derived->base conversion for auto_ptr does not really work, |
63 see | 63 see |
64 http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2000/n1232.pdf | 64 http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2000/n1232.pdf |
65 http://std.dkuug.dk/jtc1/sc22/wg21/docs/cwg_defects.html#84 | 65 http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#84 |
66 | 66 |
67 So, we have to use plain old pointers. Besides, users are not | 67 So, we have to use plain old pointers. Besides, users are not |
68 expected to use the constructor directly. | 68 expected to use the constructor directly. |
69 | 69 |
70 | 70 |
197 a separate group. | 197 a separate group. |
198 Returns *this. | 198 Returns *this. |
199 */ | 199 */ |
200 options_description& add(const options_description& desc); | 200 options_description& add(const options_description& desc); |
201 | 201 |
202 /** Find the maximum width of the option column, including options | |
203 in groups. */ | |
204 unsigned get_option_column_width() const; | |
205 | |
202 public: | 206 public: |
203 /** Returns an object of implementation-defined type suitable for adding | 207 /** Returns an object of implementation-defined type suitable for adding |
204 options to options_description. The returned object will | 208 options to options_description. The returned object will |
205 have overloaded operator() with parameter type matching | 209 have overloaded operator() with parameter type matching |
206 'option_description' constructors. Calling the operator will create | 210 'option_description' constructors. Calling the operator will create |
227 friend BOOST_PROGRAM_OPTIONS_DECL std::ostream& operator<<(std::ostream& os, | 231 friend BOOST_PROGRAM_OPTIONS_DECL std::ostream& operator<<(std::ostream& os, |
228 const options_description& desc); | 232 const options_description& desc); |
229 | 233 |
230 /** Outputs 'desc' to the specified stream, calling 'f' to output each | 234 /** Outputs 'desc' to the specified stream, calling 'f' to output each |
231 option_description element. */ | 235 option_description element. */ |
232 void print(std::ostream& os) const; | 236 void print(std::ostream& os, unsigned width = 0) const; |
233 | 237 |
234 private: | 238 private: |
235 typedef std::map<std::string, int>::const_iterator name2index_iterator; | 239 typedef std::map<std::string, int>::const_iterator name2index_iterator; |
236 typedef std::pair<name2index_iterator, name2index_iterator> | 240 typedef std::pair<name2index_iterator, name2index_iterator> |
237 approximation_range; | 241 approximation_range; |