Gromacs  2020.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
optional.cpp File Reference
#include "gmxpre.h"
#include "gromacs/compat/optional.h"
#include <initializer_list>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/utility/strconvert.h"
+ Include dependency graph for optional.cpp:

Description

Tests for C++14-compatible implementation of std::optional.

These tests are similer to those used in commit 7f4c6d4b4c8 of https://github.com/martinmoene/optional-lite.git. The code has not been linted with uncrustify so that any future updates to this active repo can be incorporated easily, and //NOLINT comments added to suppress clang-tidy warnings. The form of those changes have been made to simplify the contents, while making it easy to import any bug fixes that may appear in the source repository.

Todo:
Remove when requiring C++17, which has a standardized version of std::optional.
Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m