datatypes::utils::IfThenElse¶
Yield second or third argument depending on first argument. Could not find an easy to use if_then_else in the STL or Boost. IfThenElse will probably be replaced. Primary template: yield second or third argument depending on first argument. More...
Detailed Description¶
Yield second or third argument depending on first argument. Could not find an easy to use if_then_else in the STL or Boost. IfThenElse will probably be replaced. Primary template: yield second or third argument depending on first argument.
Template Parameters:
- C first parameter, boolean
- Ta second parameter
- Tb third parameter
Credits: C++ templates : the complete guide / David Vandevoorde, Nicolai M. Josuttis. ISBN 0-201-73484-2 (alk.paper)
Updated on 2022-08-21 at 18:10:33 +1000