Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.iso-c++ > #1980

Re: typedef auf variadic template

From ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups de.comp.lang.iso-c++
Subject Re: typedef auf variadic template
Date 2016-12-20 13:58 +0000
Organization Stefan Ram
Message-ID <switch-20161220145745@ram.dialup.fu-berlin.de> (permalink)
References <o0n81u$jmv$1@news.albasani.net>

Show all headers | View raw


Markus Donath <nntp@online.de> writes:
>Ich benötige häufig eine Überprüfung, ob ein Wert in einer Reihe von 
>Werten vorkommt. Dabei finde ich:
>if(n==3 || n==5 || n==27 || n==-1327)
>unschön.

  Wobei man auch 

switch( n )
{ case     3:
  case     5:
  case    27:
  case -1327: ...

  nicht unerwähnt lassen sollte. Das versteht der Optimierer eventuell.

Back to de.comp.lang.iso-c++ | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

typedef auf variadic template Markus Donath <nntp@online.de> - 2016-11-18 16:51 +0100
  Re: typedef auf variadic template Stefan Reuther <stefan.news@arcor.de> - 2016-11-20 11:14 +0100
    Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-11-21 08:58 +0100
    Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-11-21 11:45 +0100
    Re: typedef auf variadic template Thomas Dorner <td-dclic01@th-dorner.de> - 2016-11-21 15:42 +0100
      Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-11-22 10:07 +0100
  Re: typedef auf variadic template nntp@mailinator.com - 2016-12-20 09:54 +0000
    Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-12-22 14:30 +0100
  Re: typedef auf variadic template ram@zedat.fu-berlin.de (Stefan Ram) - 2016-12-20 13:58 +0000
    Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-12-22 14:34 +0100
    Re: typedef auf variadic template Markus Donath <nntp@online.de> - 2016-12-22 14:39 +0100

csiph-web