vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

cpp_cpp26.cpp (399B)


      1 // C++26 lexical constructs
      2 
      3 // P3394 annotations: [[ ... ]] may carry a value expression.
      4 [[=rename{"full_name"}]] int braced;
      5 [[=key(8)]]              int parened;
      6 [[nodiscard]]            int plain();
      7 
      8 // P2900 contracts: contract_assert is a keyword.
      9 void check(int x) { contract_assert(x != 0); }
     10 
     11 // P2996 reflection (^^) and splicing ([: :]).
     12 constexpr auto refl = ^^int;
     13 [:refl:] spliced{};