 
            
            
            
            
                24 Jan
                
                    2020
                
            
            
                24 Jan
                
                '20
                
            
            
            
        
    
                3:27 p.m.
            
        Christian wrote:
I'm not sure of a clean way of folding in this kind of storage optimization or what the general interface would look like.
dynamic_array<T, A> could be dynamic_value<T[], A> Then you can distinguish between: dynamic_value<T[], A> // runtime size, stores size dynamic_value<T[N], A> // no need to store size Glen