首页 > 编程语言 >自己精简 stdc++.h

自己精简 stdc++.h

时间:2022-09-20 18:23:46浏览次数:56  
标签:std __ cplusplus c++ version endif 精简 include

编译速度应该会快的(在本机)

终端

cd /usr/include/x86_64-linux-gnu/c++/9/bits
sudo geany stdc++.h
自己输密码(注意不会回显)

然后自己精简:

// C++ includes used for precompiling -*- C++ -*-

// Copyright (C) 2003-2019 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// any later version.

// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.

// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// <http://www.gnu.org/licenses/>.

/** @file stdc++.h
 *  This is an implementation file for a precompiled header.
 */

// 17.4.1.2 Headers

// C
#ifndef _GLIBCXX_NO_ASSERT
#include <cassert>
#endif
#include <cctype>
#include <ciso646>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#if __cplusplus >= 201103L
#endif

// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <random>
#include <regex>
#endif

#if __cplusplus >= 201402L
#endif

#if __cplusplus >= 201703L
#endif

#if __cplusplus > 201703L
#endif

标签:std,__,cplusplus,c++,version,endif,精简,include
From: https://www.cnblogs.com/eafoo/p/16712026.html

相关文章

  • vs code C++错误提示
    如果不小心将错误提示给禁用了,打开.vscode文件夹下的setting.json文件。将最后以个个配置语句的值改为Enabled即可。......
  • C++学习笔记
    什么是对象?1、Object=Entity///对象是东西2、Objectisvariableinprogramminglanguage.///对象即变量3、Object=Attributes+ServicesData:theproper......
  • C\C++位运算与位移运算
    位运算符:&//位与运算符|//位或运算符~//位非运算符^//位异或运算符 位与运算规则:8&3//8与30&0得00&1得01&0得01......
  • C++分数类设计题
    C++分数类设计题Defineandimplement(thatis,createFraction.handFraction.cppfiles)foraclasscalledFraction.Theclassrepresentsafractioninmath(......
  • C++进制转换题
    C++进制转换题159.102InstructionsforAssignment1Assignment1startsinWeek2andisdueinWeek5(ThursdaySep.22,2022at7pm)(ChinaTime).Youshouldpl......
  • C++ populate template array via random generator and finally sort,print
    #pragmaonce#pragmacomment(lib,"rpcrt4.lib")#include<algorithm>#include<cstring>#include<iostream>#include<random>#include<vector>#include<Windo......
  • 数据结构算法与应用:C++语言描述(第2章 程序性能)
    目录2.1引言2.2空间复杂性(spaceComplexity)\(S_p(n)\)2.2.1空间复杂性的组成2.2.2举例2.3时间复杂性(timecomplexity)\(T(n)\)2.3.1时间复杂性的组成2.3.2操作计......
  • 数据结构算法与应用:C++语言描述(第2章 程序性能)
    目录2.1引言2.2空间复杂性(spaceComplexity)\(S_p(n)\)2.2.1空间复杂性的组成2.2.2举例2.3时间复杂性(timecomplexity)\(T(n)\)2.3.1时间复杂性的组成2.3.2操作计......
  • C++ 头文件接口设计浅谈
    C++头文件接口设计浅谈作者:独钓寒江雪链接:https://zhuanlan.zhihu.com/p/338227526对于很多出入门C++的程序员来说,大部门新手都是在用别人封装好的库函数,却没有尝试过......
  • C++个人财务管理系统
    C++个人财务管理系统个人财务管理系统功能要求1.初始化:将余额置零;2.记录发生的业务操作:生成一条新的业务信息(包括日期(年、月、日)、业务说明(如收到父母转过来的生......