Blame view

3rdparty/boost_1_81_0/libs/variant2/test/quick.cpp 282 Bytes
73ef4ff3   Hu Chunming   提交三方库
1
2
3
4
5
6
7
8
9
10
11
12
13
  // Copyright 2019 Peter Dimov.
  // Distributed under the Boost Software License, Version 1.0.
  // https://www.boost.org/LICENSE_1_0.txt
  
  #include <boost/variant2.hpp>
  
  using namespace boost::variant2;
  
  int main()
  {
      variant<float, int> v( 2 );
      return get<1>( v ) == 2? 0: 1;
  }