Your code depends on Boost. Boost depends on you.

Boost's 180+ libraries are free, peer-reviewed, and kept running by a small group of maintainers. Help fund the work behind every release. Your gift is tax-deductible.

Containers Data C++11
Added in 1.71.0

Boost.Variant2

A never-valueless, strong guarantee implementation of std::variant.

About Boost.Variant2

Please check out the library's documentation to learn more.

Dependencies

Contributors: This Release


Documentation

Boost.Variant2

This repository contains a never-valueless, strong guarantee, C++11/14/17 implementation of std::variant. See the documentation for more information.

The library is part of Boost, starting from release 1.71. It depends on Boost.Mp11, Boost.Config, and Boost.Assert.

Supported compilers:

  • g++ 4.8 or later with -std=c++11 or above
  • clang++ 3.9 or later with -std=c++11 or above
  • Visual Studio 2015, 2017, 2019

Tested on Github Actions and Appveyor.

Join the Boost Developers Mailing List

Get the latest on releases, features, security patches, fixes and all major announcements.

All Contributors