Getting byte size of POD classes and dynamic arrays
    Byron Heads 
    byron.heads at gmail.com
       
    Thu May 16 06:55:09 PDT 2013
    
    
  
On Thu, 16 May 2013 13:49:51 +0000, Byron Heads wrote:
> On Thu, 16 May 2013 08:11:35 -0500, 1100110 wrote:
>> 
>> __traits(classInstanceSize, MyClass); ?
> 
> Any ideas on how to get the element type of an array ie:   int[]  -> int
>   int[][]  -> int[]
> 
> I am going to block dynamic arrays with more then 1D, since they are
> holding pointers in the data block
Found ForeachType!T  this seems to do the trick.  Not the most initiative 
name for the function but works for my case.
Thanks for the help 
    
    
More information about the Digitalmars-d-learn
mailing list