@@ -166,22 +166,22 @@ class _LIBCPP_TEMPLATE_VIS mersenne_twister_engine {
166
166
static_assert (__f <= _Max, " mersenne_twister_engine invalid parameters" );
167
167
168
168
// engine characteristics
169
- static _LIBCPP_CONSTEXPR const size_t word_size = __w;
170
- static _LIBCPP_CONSTEXPR const size_t state_size = __n;
171
- static _LIBCPP_CONSTEXPR const size_t shift_size = __m;
172
- static _LIBCPP_CONSTEXPR const size_t mask_bits = __r;
173
- static _LIBCPP_CONSTEXPR const result_type xor_mask = __a;
174
- static _LIBCPP_CONSTEXPR const size_t tempering_u = __u;
175
- static _LIBCPP_CONSTEXPR const result_type tempering_d = __d;
176
- static _LIBCPP_CONSTEXPR const size_t tempering_s = __s;
177
- static _LIBCPP_CONSTEXPR const result_type tempering_b = __b;
178
- static _LIBCPP_CONSTEXPR const size_t tempering_t = __t ;
179
- static _LIBCPP_CONSTEXPR const result_type tempering_c = __c;
180
- static _LIBCPP_CONSTEXPR const size_t tempering_l = __l;
181
- static _LIBCPP_CONSTEXPR const result_type initialization_multiplier = __f;
169
+ static inline _LIBCPP_CONSTEXPR const size_t word_size = __w;
170
+ static inline _LIBCPP_CONSTEXPR const size_t state_size = __n;
171
+ static inline _LIBCPP_CONSTEXPR const size_t shift_size = __m;
172
+ static inline _LIBCPP_CONSTEXPR const size_t mask_bits = __r;
173
+ static inline _LIBCPP_CONSTEXPR const result_type xor_mask = __a;
174
+ static inline _LIBCPP_CONSTEXPR const size_t tempering_u = __u;
175
+ static inline _LIBCPP_CONSTEXPR const result_type tempering_d = __d;
176
+ static inline _LIBCPP_CONSTEXPR const size_t tempering_s = __s;
177
+ static inline _LIBCPP_CONSTEXPR const result_type tempering_b = __b;
178
+ static inline _LIBCPP_CONSTEXPR const size_t tempering_t = __t ;
179
+ static inline _LIBCPP_CONSTEXPR const result_type tempering_c = __c;
180
+ static inline _LIBCPP_CONSTEXPR const size_t tempering_l = __l;
181
+ static inline _LIBCPP_CONSTEXPR const result_type initialization_multiplier = __f;
182
182
_LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type min () { return _Min; }
183
183
_LIBCPP_HIDE_FROM_ABI static _LIBCPP_CONSTEXPR result_type max () { return _Max; }
184
- static _LIBCPP_CONSTEXPR const result_type default_seed = 5489u ;
184
+ static inline _LIBCPP_CONSTEXPR const result_type default_seed = 5489u ;
185
185
186
186
// constructors and seeding functions
187
187
#ifndef _LIBCPP_CXX03_LANG
@@ -310,329 +310,6 @@ class _LIBCPP_TEMPLATE_VIS mersenne_twister_engine {
310
310
}
311
311
};
312
312
313
- template <class _UIntType ,
314
- size_t __w,
315
- size_t __n,
316
- size_t __m,
317
- size_t __r,
318
- _UIntType __a,
319
- size_t __u,
320
- _UIntType __d,
321
- size_t __s,
322
- _UIntType __b,
323
- size_t __t ,
324
- _UIntType __c,
325
- size_t __l,
326
- _UIntType __f>
327
- _LIBCPP_CONSTEXPR const size_t
328
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::word_size;
329
-
330
- template <class _UIntType ,
331
- size_t __w,
332
- size_t __n,
333
- size_t __m,
334
- size_t __r,
335
- _UIntType __a,
336
- size_t __u,
337
- _UIntType __d,
338
- size_t __s,
339
- _UIntType __b,
340
- size_t __t ,
341
- _UIntType __c,
342
- size_t __l,
343
- _UIntType __f>
344
- _LIBCPP_CONSTEXPR const size_t
345
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::state_size;
346
-
347
- template <class _UIntType ,
348
- size_t __w,
349
- size_t __n,
350
- size_t __m,
351
- size_t __r,
352
- _UIntType __a,
353
- size_t __u,
354
- _UIntType __d,
355
- size_t __s,
356
- _UIntType __b,
357
- size_t __t ,
358
- _UIntType __c,
359
- size_t __l,
360
- _UIntType __f>
361
- _LIBCPP_CONSTEXPR const size_t
362
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::shift_size;
363
-
364
- template <class _UIntType ,
365
- size_t __w,
366
- size_t __n,
367
- size_t __m,
368
- size_t __r,
369
- _UIntType __a,
370
- size_t __u,
371
- _UIntType __d,
372
- size_t __s,
373
- _UIntType __b,
374
- size_t __t ,
375
- _UIntType __c,
376
- size_t __l,
377
- _UIntType __f>
378
- _LIBCPP_CONSTEXPR const size_t
379
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::mask_bits;
380
-
381
- template <class _UIntType ,
382
- size_t __w,
383
- size_t __n,
384
- size_t __m,
385
- size_t __r,
386
- _UIntType __a,
387
- size_t __u,
388
- _UIntType __d,
389
- size_t __s,
390
- _UIntType __b,
391
- size_t __t ,
392
- _UIntType __c,
393
- size_t __l,
394
- _UIntType __f>
395
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
396
- _UIntType,
397
- __w,
398
- __n,
399
- __m,
400
- __r,
401
- __a,
402
- __u,
403
- __d,
404
- __s,
405
- __b,
406
- __t ,
407
- __c,
408
- __l,
409
- __f>::result_type
410
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::xor_mask;
411
-
412
- template <class _UIntType ,
413
- size_t __w,
414
- size_t __n,
415
- size_t __m,
416
- size_t __r,
417
- _UIntType __a,
418
- size_t __u,
419
- _UIntType __d,
420
- size_t __s,
421
- _UIntType __b,
422
- size_t __t ,
423
- _UIntType __c,
424
- size_t __l,
425
- _UIntType __f>
426
- _LIBCPP_CONSTEXPR const size_t
427
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_u;
428
-
429
- template <class _UIntType ,
430
- size_t __w,
431
- size_t __n,
432
- size_t __m,
433
- size_t __r,
434
- _UIntType __a,
435
- size_t __u,
436
- _UIntType __d,
437
- size_t __s,
438
- _UIntType __b,
439
- size_t __t ,
440
- _UIntType __c,
441
- size_t __l,
442
- _UIntType __f>
443
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
444
- _UIntType,
445
- __w,
446
- __n,
447
- __m,
448
- __r,
449
- __a,
450
- __u,
451
- __d,
452
- __s,
453
- __b,
454
- __t ,
455
- __c,
456
- __l,
457
- __f>::result_type
458
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_d;
459
-
460
- template <class _UIntType ,
461
- size_t __w,
462
- size_t __n,
463
- size_t __m,
464
- size_t __r,
465
- _UIntType __a,
466
- size_t __u,
467
- _UIntType __d,
468
- size_t __s,
469
- _UIntType __b,
470
- size_t __t ,
471
- _UIntType __c,
472
- size_t __l,
473
- _UIntType __f>
474
- _LIBCPP_CONSTEXPR const size_t
475
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_s;
476
-
477
- template <class _UIntType ,
478
- size_t __w,
479
- size_t __n,
480
- size_t __m,
481
- size_t __r,
482
- _UIntType __a,
483
- size_t __u,
484
- _UIntType __d,
485
- size_t __s,
486
- _UIntType __b,
487
- size_t __t ,
488
- _UIntType __c,
489
- size_t __l,
490
- _UIntType __f>
491
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
492
- _UIntType,
493
- __w,
494
- __n,
495
- __m,
496
- __r,
497
- __a,
498
- __u,
499
- __d,
500
- __s,
501
- __b,
502
- __t ,
503
- __c,
504
- __l,
505
- __f>::result_type
506
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_b;
507
-
508
- template <class _UIntType ,
509
- size_t __w,
510
- size_t __n,
511
- size_t __m,
512
- size_t __r,
513
- _UIntType __a,
514
- size_t __u,
515
- _UIntType __d,
516
- size_t __s,
517
- _UIntType __b,
518
- size_t __t ,
519
- _UIntType __c,
520
- size_t __l,
521
- _UIntType __f>
522
- _LIBCPP_CONSTEXPR const size_t
523
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_t ;
524
-
525
- template <class _UIntType ,
526
- size_t __w,
527
- size_t __n,
528
- size_t __m,
529
- size_t __r,
530
- _UIntType __a,
531
- size_t __u,
532
- _UIntType __d,
533
- size_t __s,
534
- _UIntType __b,
535
- size_t __t ,
536
- _UIntType __c,
537
- size_t __l,
538
- _UIntType __f>
539
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
540
- _UIntType,
541
- __w,
542
- __n,
543
- __m,
544
- __r,
545
- __a,
546
- __u,
547
- __d,
548
- __s,
549
- __b,
550
- __t ,
551
- __c,
552
- __l,
553
- __f>::result_type
554
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_c;
555
-
556
- template <class _UIntType ,
557
- size_t __w,
558
- size_t __n,
559
- size_t __m,
560
- size_t __r,
561
- _UIntType __a,
562
- size_t __u,
563
- _UIntType __d,
564
- size_t __s,
565
- _UIntType __b,
566
- size_t __t ,
567
- _UIntType __c,
568
- size_t __l,
569
- _UIntType __f>
570
- _LIBCPP_CONSTEXPR const size_t
571
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::tempering_l;
572
-
573
- template <class _UIntType ,
574
- size_t __w,
575
- size_t __n,
576
- size_t __m,
577
- size_t __r,
578
- _UIntType __a,
579
- size_t __u,
580
- _UIntType __d,
581
- size_t __s,
582
- _UIntType __b,
583
- size_t __t ,
584
- _UIntType __c,
585
- size_t __l,
586
- _UIntType __f>
587
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
588
- _UIntType,
589
- __w,
590
- __n,
591
- __m,
592
- __r,
593
- __a,
594
- __u,
595
- __d,
596
- __s,
597
- __b,
598
- __t ,
599
- __c,
600
- __l,
601
- __f>::result_type
602
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::
603
- initialization_multiplier;
604
-
605
- template <class _UIntType ,
606
- size_t __w,
607
- size_t __n,
608
- size_t __m,
609
- size_t __r,
610
- _UIntType __a,
611
- size_t __u,
612
- _UIntType __d,
613
- size_t __s,
614
- _UIntType __b,
615
- size_t __t ,
616
- _UIntType __c,
617
- size_t __l,
618
- _UIntType __f>
619
- _LIBCPP_CONSTEXPR const typename mersenne_twister_engine<
620
- _UIntType,
621
- __w,
622
- __n,
623
- __m,
624
- __r,
625
- __a,
626
- __u,
627
- __d,
628
- __s,
629
- __b,
630
- __t ,
631
- __c,
632
- __l,
633
- __f>::result_type
634
- mersenne_twister_engine<_UIntType, __w, __n, __m, __r, __a, __u, __d, __s, __b, __t , __c, __l, __f>::default_seed;
635
-
636
313
template <class _UIntType ,
637
314
size_t __w,
638
315
size_t __n,
0 commit comments