Changeset 5ef4008 for libcfa/src
- Timestamp:
- Sep 13, 2024, 2:43:22 PM (17 months ago)
- Branches:
- master
- Children:
- 8c79dc3c
- Parents:
- c494b84 (diff), 9739c56f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
libcfa/src/collections/array.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/array.hfa
rc494b84 r5ef4008 156 156 // other two. This solution offers ?{}() that needs only ?{}(), and similar for ^?{}. 157 157 158 // skip initializing elements 159 // array(float, 5) x = { delay_init }; 160 enum () delay_init_t { delay_init }; 161 forall( [N], S & | sized(S), Timmed &, Tbase & ) 162 static inline void ?{}( arpk( N, S, Timmed, Tbase ) & this, delay_init_t ) { 163 void ?{}( S (&)[N] ) {} 164 ?{}(this.strides); 165 } 166 167 // call default ctor on elements 168 // array(float, 5) x; 158 169 forall( [N], S & | sized(S), Timmed &, Tbase & | { void ?{}( Timmed & ); } ) 159 170 static inline void ?{}( arpk( N, S, Timmed, Tbase ) & this ) { 160 void ?{}( S (&)[N] ) {} 161 ?{}(this.strides); 162 171 ?{}( this, delay_init ); 163 172 for (i; N) ?{}( (Timmed &)this.strides[i] ); 164 173 } … … 173 182 } 174 183 } 184 175 185 176 186 //
Note:
See TracChangeset
for help on using the changeset viewer.