• Home
  • Raw
  • Download

Lines Matching refs:subspan

287     constexpr auto subspan = span.first<0>();  in TEST()  local
288 static_assert(span.data() == subspan.data(), ""); in TEST()
289 static_assert(0u == subspan.size(), ""); in TEST()
290 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
294 constexpr auto subspan = span.first<1>(); in TEST() local
295 static_assert(span.data() == subspan.data(), ""); in TEST()
296 static_assert(1u == subspan.size(), ""); in TEST()
297 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
298 static_assert(1 == subspan[0], ""); in TEST()
302 constexpr auto subspan = span.first<2>(); in TEST() local
303 static_assert(span.data() == subspan.data(), ""); in TEST()
304 static_assert(2u == subspan.size(), ""); in TEST()
305 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
306 static_assert(1 == subspan[0], ""); in TEST()
307 static_assert(2 == subspan[1], ""); in TEST()
311 constexpr auto subspan = span.first<3>(); in TEST() local
312 static_assert(span.data() == subspan.data(), ""); in TEST()
313 static_assert(3u == subspan.size(), ""); in TEST()
314 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
315 static_assert(1 == subspan[0], ""); in TEST()
316 static_assert(2 == subspan[1], ""); in TEST()
317 static_assert(3 == subspan[2], ""); in TEST()
326 constexpr auto subspan = span.last<0>(); in TEST() local
327 static_assert(span.data() + 3 == subspan.data(), ""); in TEST()
328 static_assert(0u == subspan.size(), ""); in TEST()
329 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
333 constexpr auto subspan = span.last<1>(); in TEST() local
334 static_assert(span.data() + 2 == subspan.data(), ""); in TEST()
335 static_assert(1u == subspan.size(), ""); in TEST()
336 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
337 static_assert(3 == subspan[0], ""); in TEST()
341 constexpr auto subspan = span.last<2>(); in TEST() local
342 static_assert(span.data() + 1 == subspan.data(), ""); in TEST()
343 static_assert(2u == subspan.size(), ""); in TEST()
344 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
345 static_assert(2 == subspan[0], ""); in TEST()
346 static_assert(3 == subspan[1], ""); in TEST()
350 constexpr auto subspan = span.last<3>(); in TEST() local
351 static_assert(span.data() == subspan.data(), ""); in TEST()
352 static_assert(3u == subspan.size(), ""); in TEST()
353 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
354 static_assert(1 == subspan[0], ""); in TEST()
355 static_assert(2 == subspan[1], ""); in TEST()
356 static_assert(3 == subspan[2], ""); in TEST()
365 constexpr auto subspan = span.subspan<0>(); in TEST() local
366 static_assert(span.data() == subspan.data(), ""); in TEST()
367 static_assert(3u == subspan.size(), ""); in TEST()
368 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
369 static_assert(1 == subspan[0], ""); in TEST()
370 static_assert(2 == subspan[1], ""); in TEST()
371 static_assert(3 == subspan[2], ""); in TEST()
375 constexpr auto subspan = span.subspan<1>(); in TEST() local
376 static_assert(span.data() + 1 == subspan.data(), ""); in TEST()
377 static_assert(2u == subspan.size(), ""); in TEST()
378 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
379 static_assert(2 == subspan[0], ""); in TEST()
380 static_assert(3 == subspan[1], ""); in TEST()
384 constexpr auto subspan = span.subspan<2>(); in TEST() local
385 static_assert(span.data() + 2 == subspan.data(), ""); in TEST()
386 static_assert(1u == subspan.size(), ""); in TEST()
387 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
388 static_assert(3 == subspan[0], ""); in TEST()
392 constexpr auto subspan = span.subspan<3>(); in TEST() local
393 static_assert(span.data() + 3 == subspan.data(), ""); in TEST()
394 static_assert(0u == subspan.size(), ""); in TEST()
395 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
399 constexpr auto subspan = span.subspan<0, 0>(); in TEST() local
400 static_assert(span.data() == subspan.data(), ""); in TEST()
401 static_assert(0u == subspan.size(), ""); in TEST()
402 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
406 constexpr auto subspan = span.subspan<1, 0>(); in TEST() local
407 static_assert(span.data() + 1 == subspan.data(), ""); in TEST()
408 static_assert(0u == subspan.size(), ""); in TEST()
409 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
413 constexpr auto subspan = span.subspan<2, 0>(); in TEST() local
414 static_assert(span.data() + 2 == subspan.data(), ""); in TEST()
415 static_assert(0u == subspan.size(), ""); in TEST()
416 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
420 constexpr auto subspan = span.subspan<0, 1>(); in TEST() local
421 static_assert(span.data() == subspan.data(), ""); in TEST()
422 static_assert(1u == subspan.size(), ""); in TEST()
423 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
424 static_assert(1 == subspan[0], ""); in TEST()
428 constexpr auto subspan = span.subspan<1, 1>(); in TEST() local
429 static_assert(span.data() + 1 == subspan.data(), ""); in TEST()
430 static_assert(1u == subspan.size(), ""); in TEST()
431 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
432 static_assert(2 == subspan[0], ""); in TEST()
436 constexpr auto subspan = span.subspan<2, 1>(); in TEST() local
437 static_assert(span.data() + 2 == subspan.data(), ""); in TEST()
438 static_assert(1u == subspan.size(), ""); in TEST()
439 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
440 static_assert(3 == subspan[0], ""); in TEST()
444 constexpr auto subspan = span.subspan<0, 2>(); in TEST() local
445 static_assert(span.data() == subspan.data(), ""); in TEST()
446 static_assert(2u == subspan.size(), ""); in TEST()
447 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
448 static_assert(1 == subspan[0], ""); in TEST()
449 static_assert(2 == subspan[1], ""); in TEST()
453 constexpr auto subspan = span.subspan<1, 2>(); in TEST() local
454 static_assert(span.data() + 1 == subspan.data(), ""); in TEST()
455 static_assert(2u == subspan.size(), ""); in TEST()
456 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
457 static_assert(2 == subspan[0], ""); in TEST()
458 static_assert(3 == subspan[1], ""); in TEST()
462 constexpr auto subspan = span.subspan<0, 3>(); in TEST() local
463 static_assert(span.data() == subspan.data(), ""); in TEST()
464 static_assert(3u == subspan.size(), ""); in TEST()
465 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
466 static_assert(1 == subspan[0], ""); in TEST()
467 static_assert(2 == subspan[1], ""); in TEST()
468 static_assert(3 == subspan[2], ""); in TEST()
477 auto subspan = span.first<0>(); in TEST() local
478 EXPECT_EQ(span.data(), subspan.data()); in TEST()
479 EXPECT_EQ(0u, subspan.size()); in TEST()
480 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
484 auto subspan = span.first<1>(); in TEST() local
485 EXPECT_EQ(span.data(), subspan.data()); in TEST()
486 EXPECT_EQ(1u, subspan.size()); in TEST()
487 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
488 EXPECT_EQ(1, subspan[0]); in TEST()
492 auto subspan = span.first<2>(); in TEST() local
493 EXPECT_EQ(span.data(), subspan.data()); in TEST()
494 EXPECT_EQ(2u, subspan.size()); in TEST()
495 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
496 EXPECT_EQ(1, subspan[0]); in TEST()
497 EXPECT_EQ(2, subspan[1]); in TEST()
501 auto subspan = span.first<3>(); in TEST() local
502 EXPECT_EQ(span.data(), subspan.data()); in TEST()
503 EXPECT_EQ(3u, subspan.size()); in TEST()
504 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
505 EXPECT_EQ(1, subspan[0]); in TEST()
506 EXPECT_EQ(2, subspan[1]); in TEST()
507 EXPECT_EQ(3, subspan[2]); in TEST()
516 auto subspan = span.last<0>(); in TEST() local
517 EXPECT_EQ(span.data() + 3, subspan.data()); in TEST()
518 EXPECT_EQ(0u, subspan.size()); in TEST()
519 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
523 auto subspan = span.last<1>(); in TEST() local
524 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
525 EXPECT_EQ(1u, subspan.size()); in TEST()
526 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
527 EXPECT_EQ(3, subspan[0]); in TEST()
531 auto subspan = span.last<2>(); in TEST() local
532 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
533 EXPECT_EQ(2u, subspan.size()); in TEST()
534 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
535 EXPECT_EQ(2, subspan[0]); in TEST()
536 EXPECT_EQ(3, subspan[1]); in TEST()
540 auto subspan = span.last<3>(); in TEST() local
541 EXPECT_EQ(span.data(), subspan.data()); in TEST()
542 EXPECT_EQ(3u, subspan.size()); in TEST()
543 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
544 EXPECT_EQ(1, subspan[0]); in TEST()
545 EXPECT_EQ(2, subspan[1]); in TEST()
546 EXPECT_EQ(3, subspan[2]); in TEST()
555 auto subspan = span.subspan<0>(); in TEST() local
556 EXPECT_EQ(span.data(), subspan.data()); in TEST()
557 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
558 EXPECT_EQ(3u, subspan.size()); in TEST()
559 EXPECT_EQ(1, subspan[0]); in TEST()
560 EXPECT_EQ(2, subspan[1]); in TEST()
561 EXPECT_EQ(3, subspan[2]); in TEST()
565 auto subspan = span.subspan<1>(); in TEST() local
566 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
567 EXPECT_EQ(2u, subspan.size()); in TEST()
568 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
569 EXPECT_EQ(2, subspan[0]); in TEST()
570 EXPECT_EQ(3, subspan[1]); in TEST()
574 auto subspan = span.subspan<2>(); in TEST() local
575 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
576 EXPECT_EQ(1u, subspan.size()); in TEST()
577 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
578 EXPECT_EQ(3, subspan[0]); in TEST()
582 auto subspan = span.subspan<3>(); in TEST() local
583 EXPECT_EQ(span.data() + 3, subspan.data()); in TEST()
584 EXPECT_EQ(0u, subspan.size()); in TEST()
585 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
589 auto subspan = span.subspan<0, 0>(); in TEST() local
590 EXPECT_EQ(span.data(), subspan.data()); in TEST()
591 EXPECT_EQ(0u, subspan.size()); in TEST()
592 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
596 auto subspan = span.subspan<1, 0>(); in TEST() local
597 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
598 EXPECT_EQ(0u, subspan.size()); in TEST()
599 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
603 auto subspan = span.subspan<2, 0>(); in TEST() local
604 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
605 EXPECT_EQ(0u, subspan.size()); in TEST()
606 static_assert(0u == decltype(subspan)::extent, ""); in TEST()
610 auto subspan = span.subspan<0, 1>(); in TEST() local
611 EXPECT_EQ(span.data(), subspan.data()); in TEST()
612 EXPECT_EQ(1u, subspan.size()); in TEST()
613 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
614 EXPECT_EQ(1, subspan[0]); in TEST()
618 auto subspan = span.subspan<1, 1>(); in TEST() local
619 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
620 EXPECT_EQ(1u, subspan.size()); in TEST()
621 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
622 EXPECT_EQ(2, subspan[0]); in TEST()
626 auto subspan = span.subspan<2, 1>(); in TEST() local
627 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
628 EXPECT_EQ(1u, subspan.size()); in TEST()
629 static_assert(1u == decltype(subspan)::extent, ""); in TEST()
630 EXPECT_EQ(3, subspan[0]); in TEST()
634 auto subspan = span.subspan<0, 2>(); in TEST() local
635 EXPECT_EQ(span.data(), subspan.data()); in TEST()
636 EXPECT_EQ(2u, subspan.size()); in TEST()
637 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
638 EXPECT_EQ(1, subspan[0]); in TEST()
639 EXPECT_EQ(2, subspan[1]); in TEST()
643 auto subspan = span.subspan<1, 2>(); in TEST() local
644 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
645 EXPECT_EQ(2u, subspan.size()); in TEST()
646 static_assert(2u == decltype(subspan)::extent, ""); in TEST()
647 EXPECT_EQ(2, subspan[0]); in TEST()
648 EXPECT_EQ(3, subspan[1]); in TEST()
652 auto subspan = span.subspan<0, 3>(); in TEST() local
653 EXPECT_EQ(span.data(), subspan.data()); in TEST()
654 EXPECT_EQ(3u, subspan.size()); in TEST()
655 static_assert(3u == decltype(subspan)::extent, ""); in TEST()
656 EXPECT_EQ(1, subspan[0]); in TEST()
657 EXPECT_EQ(2, subspan[1]); in TEST()
658 EXPECT_EQ(3, subspan[2]); in TEST()
667 auto subspan = span.first(0); in TEST() local
668 EXPECT_EQ(span.data(), subspan.data()); in TEST()
669 EXPECT_EQ(0u, subspan.size()); in TEST()
673 auto subspan = span.first(1); in TEST() local
674 EXPECT_EQ(span.data(), subspan.data()); in TEST()
675 EXPECT_EQ(1u, subspan.size()); in TEST()
676 EXPECT_EQ(1, subspan[0]); in TEST()
680 auto subspan = span.first(2); in TEST() local
681 EXPECT_EQ(span.data(), subspan.data()); in TEST()
682 EXPECT_EQ(2u, subspan.size()); in TEST()
683 EXPECT_EQ(1, subspan[0]); in TEST()
684 EXPECT_EQ(2, subspan[1]); in TEST()
688 auto subspan = span.first(3); in TEST() local
689 EXPECT_EQ(span.data(), subspan.data()); in TEST()
690 EXPECT_EQ(3u, subspan.size()); in TEST()
691 EXPECT_EQ(1, subspan[0]); in TEST()
692 EXPECT_EQ(2, subspan[1]); in TEST()
693 EXPECT_EQ(3, subspan[2]); in TEST()
702 auto subspan = span.last(0); in TEST() local
703 EXPECT_EQ(span.data() + 3, subspan.data()); in TEST()
704 EXPECT_EQ(0u, subspan.size()); in TEST()
708 auto subspan = span.last(1); in TEST() local
709 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
710 EXPECT_EQ(1u, subspan.size()); in TEST()
711 EXPECT_EQ(3, subspan[0]); in TEST()
715 auto subspan = span.last(2); in TEST() local
716 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
717 EXPECT_EQ(2u, subspan.size()); in TEST()
718 EXPECT_EQ(2, subspan[0]); in TEST()
719 EXPECT_EQ(3, subspan[1]); in TEST()
723 auto subspan = span.last(3); in TEST() local
724 EXPECT_EQ(span.data(), subspan.data()); in TEST()
725 EXPECT_EQ(3u, subspan.size()); in TEST()
726 EXPECT_EQ(1, subspan[0]); in TEST()
727 EXPECT_EQ(2, subspan[1]); in TEST()
728 EXPECT_EQ(3, subspan[2]); in TEST()
737 auto subspan = span.subspan(0); in TEST() local
738 EXPECT_EQ(span.data(), subspan.data()); in TEST()
739 EXPECT_EQ(3u, subspan.size()); in TEST()
740 EXPECT_EQ(1, subspan[0]); in TEST()
741 EXPECT_EQ(2, subspan[1]); in TEST()
742 EXPECT_EQ(3, subspan[2]); in TEST()
746 auto subspan = span.subspan(1); in TEST() local
747 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
748 EXPECT_EQ(2u, subspan.size()); in TEST()
749 EXPECT_EQ(2, subspan[0]); in TEST()
750 EXPECT_EQ(3, subspan[1]); in TEST()
754 auto subspan = span.subspan(2); in TEST() local
755 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
756 EXPECT_EQ(1u, subspan.size()); in TEST()
757 EXPECT_EQ(3, subspan[0]); in TEST()
761 auto subspan = span.subspan(3); in TEST() local
762 EXPECT_EQ(span.data() + 3, subspan.data()); in TEST()
763 EXPECT_EQ(0u, subspan.size()); in TEST()
767 auto subspan = span.subspan(0, 0); in TEST() local
768 EXPECT_EQ(span.data(), subspan.data()); in TEST()
769 EXPECT_EQ(0u, subspan.size()); in TEST()
773 auto subspan = span.subspan(1, 0); in TEST() local
774 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
775 EXPECT_EQ(0u, subspan.size()); in TEST()
779 auto subspan = span.subspan(2, 0); in TEST() local
780 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
781 EXPECT_EQ(0u, subspan.size()); in TEST()
785 auto subspan = span.subspan(0, 1); in TEST() local
786 EXPECT_EQ(span.data(), subspan.data()); in TEST()
787 EXPECT_EQ(1u, subspan.size()); in TEST()
788 EXPECT_EQ(1, subspan[0]); in TEST()
792 auto subspan = span.subspan(1, 1); in TEST() local
793 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
794 EXPECT_EQ(1u, subspan.size()); in TEST()
795 EXPECT_EQ(2, subspan[0]); in TEST()
799 auto subspan = span.subspan(2, 1); in TEST() local
800 EXPECT_EQ(span.data() + 2, subspan.data()); in TEST()
801 EXPECT_EQ(1u, subspan.size()); in TEST()
802 EXPECT_EQ(3, subspan[0]); in TEST()
806 auto subspan = span.subspan(0, 2); in TEST() local
807 EXPECT_EQ(span.data(), subspan.data()); in TEST()
808 EXPECT_EQ(2u, subspan.size()); in TEST()
809 EXPECT_EQ(1, subspan[0]); in TEST()
810 EXPECT_EQ(2, subspan[1]); in TEST()
814 auto subspan = span.subspan(1, 2); in TEST() local
815 EXPECT_EQ(span.data() + 1, subspan.data()); in TEST()
816 EXPECT_EQ(2u, subspan.size()); in TEST()
817 EXPECT_EQ(2, subspan[0]); in TEST()
818 EXPECT_EQ(3, subspan[1]); in TEST()
822 auto subspan = span.subspan(0, 3); in TEST() local
823 EXPECT_EQ(span.data(), subspan.data()); in TEST()
824 EXPECT_EQ(span.size(), subspan.size()); in TEST()
825 EXPECT_EQ(1, subspan[0]); in TEST()
826 EXPECT_EQ(2, subspan[1]); in TEST()
827 EXPECT_EQ(3, subspan[2]); in TEST()
1151 constexpr span<const int> subspan = in TEST() local
1152 constexpr_span.subspan(start, start + size); in TEST()
1153 for (size_t i = 0; i < subspan.size(); ++i) in TEST()
1154 EXPECT_EQ(kArray[start + i], subspan[i]); in TEST()