boost.png (6897 bytes) Home Libraries People FAQ More

Next

Chapter 1. Boost.Switch 1.0

Steven Watanabe

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
switch_
bad_switch
BOOST_SWITCH_LIMIT

Introduction

The built in C/C++ switch statement is very efficient. Unfortunately, unlike a chained if/else construct there is no easy way to use it when the number of cases depends on a template parameter.

Last revised: February 07, 2007 at 20:06:19 GMT


Next