mcpp index

compat.boost-concept-check

#include

Boost.ConceptCheck 1.92.0 — compile-time checks for C++ concepts and requirements

#include <boost/concept_check.hpp>
mcpp add compat.boost-concept-check@1.92.0

用法

来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。

#include <boost/concept_check.hpp>

BOOST_CONCEPT_ASSERT((boost::CopyConstructible<int>));
BOOST_CONCEPT_ASSERT((boost::DefaultConstructible<int>));

int main() {
    int value = 42;
    return value == 42 ? 0 : 1;
}

tests/examples/boost-concept-check/tests/concepts.cpp · 项目 tests/examples/boost-concept-check

构建

targets
boost_concept_check (lib)
language
c++23
import std
no
include dirs
*/include

源文件 (1)

  • mcpp_generated/boost_concept_check_anchor.cpp

生成的文件

  • mcpp_generated/boost_concept_check_anchor.cpp

版本

版本平台 镜像sha256
1.92.0 最新 LinuxWindowsmacOS 源站 8dbd2385b004…