Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2004-01-30 18:04:30


On Wed, 28 Jan 2004 16:44:42 -0700, "Jonathan Turkanis"
<technews_at_[hidden]> wrote:

>The current array sizing facility is not standard-conforming. I assume
>Thorsten is going to fix it, but it doesn't look like he has yet.

A conforming implementation is really two lines of code. It's fun to
write, but admittedly of limited usefulness, in that I would think in
properly designed code the needed number of elements would be already
exposed through a named constant. So, the only cases where I can
imagine this to be useful is either when you need the count of the
array to play some unorthodox trick, or when you have third-party code
that "forgot" to expose the right constant.

Genny.

begin 644 array_counter.hpp
M+R\@+2T_at_87)R87E?8V]U;G1E<BYH<'`@+2T-"B\O#0HO+R`H0RD_at_1V5N;F%R
M;R!0<F]T82`R,#`T#0HO+PT*+R\@(%5S92P@;6]D:69I8V%T:6]N+"!A;F0@
M9&ES=')I8G5T:6]N(&ES('-U8FIE8W0@=&\@=&AE($)O;W-T(%-O9G1W87)E
M#0HO+R`@3&EC96YS92P_at_5F5R<VEO;B`Q+C`N("A3964_at_86-C;VUP86YY:6YG
M(&9I;&4_at_3$E#14Y315\Q7S`N='AT(&]R(&-O<'D-"B\O("!A="!H='1P.B\O
M=W=W+F)O;W-T+F]R9R],24-%3E-%7S%?,"YT>'0I#0HO+PT*+R\@("TM+2TM
M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2T-"@T*(VEF
M;F1E9B!-05E"15]"3T]35%]!4E)!65]#3U5.5$527TA04%]'4%\R,#`T,#$S
M,`T*(V1E9FEN92!-05E"15]"3T]35%]!4E)!65]#3U5.5$527TA04%]'4%\R
M,#`T,#$S,`T*#0HC:6YC;'5D92`\8W-T9&1E9CX-"@T*#0IN86UE<W!A8V4@
M;6%Y8F5?8F]O<W0@>PT*#0H@("`@=&5M<&QA=&4@/'-T9#HZ<VEZ95]T+"!T
M>7!E;F%M93X-"B`@("!S=')U8W0_at_8V]U;G1?9&EM.PT*#0H@("`@=&5M<&QA
M=&4@/'-T9#HZ<VEZ95]T(&1I;2P@='EP96YA;64_at_5"P@<W1D.CIS:7IE7W0@
M;CX-"B`@("!S=')U8W0_at_8V]U;G1?9&EM/&1I;2P_at_5%MN73X-"B`@("![#0H@
M("`@("`@('-T871I8R!C;VYS="!S=&0Z.G-I>F5?="!V86QU92`](&-O=6YT
M7V1I;3QD:6TM,2P_at_5#XZ.G9A;'5E.PT*("`@('T[#0H-"B`@("!T96UP;&%T
M92`\='EP96YA;64_at_5"P@<W1D.CIS:7IE7W0@;CX-"B`@("!S=')U8W0_at_8V]U
M;G1?9&EM/#`L(%1;;ET^#0H@("`@>PT*("`@("`@("!S=&%T:6,@8V]N<W0@
M<W1D.CIS:7IE7W0@=F%L=64@/2!N.PT*("`@('T[#0H-"@T*("`@('1E;7!L
M871E(#QS=&0Z.G-I>F5?="!D:6TL('1Y<&5N86UE(%0L('-T9#HZ<VEZ95]T
M(&X^#0H@("`@8VAA<B`H)F%R<F%Y7V-O=6YT*%0H)BE;;ETI*2!;8V]U;G1?
M9&EM/&1I;2P_at_5%MN73XZ.G9A;'5E73L-"@T*?0T*#0HC96YD:68@+R\@:6YC
,;'5D92!G=6%R9`T*
`
end


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk