POV-Ray : Newsgroups : povray.off-topic : Microsoft may have done something right... : Re: Microsoft may have done something right... Server Time
11 Oct 2024 01:23:17 EDT (-0400)
  Re: Microsoft may have done something right...  
From: Nicolas Alvarez
Date: 25 Mar 2008 11:34:22
Message: <47e9298e@news.povray.org>

> [I particularly like that way that if I make an array of 4 million 
> Boolean values, each one takes up exactly 1 *bit* of RAM. And yet, the 
> interface is identical to any other kind of array...]

C++ STL vector template class has a specialization for 'bool' that uses 
1 bit per element too. That is, a vector<bool> takes 1 bit per element.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.