⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hash_fwd_test_2.cpp

📁 Boost provides free peer-reviewed portable C++ source libraries. We emphasize libraries that work
💻 CPP
字号:
// Copyright 2006-2008 Daniel James.// Distributed under the Boost Software License, Version 1.0. (See accompanying// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)// This test just makes sure a header which uses hash_fwd can compile without// the main hash headers.#include "./hash_fwd_test.hpp"#include <boost/detail/lightweight_test.hpp>template <class T> void unused(T const&) {}void fwd_test(){    test::test_type1<int> x1(3);    test::test_type1<std::string> y1("Black");    test::test_type2<int> x2(25, 16);    test::test_type2<std::string> y2("White", "Green");    std::vector<int> empty;    std::vector<std::string> empty2;    test::test_type3<int> x3(empty.begin(), empty.end());    test::test_type3<std::string> y3(empty2.begin(), empty2.end());    // Prevent gcc warnings:    unused(x1); unused(x2); unused(x3);    unused(y1); unused(y2); unused(y3);}int main(){    fwd_test();    return boost::report_errors();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -