I have written a comprehensive article on how you can use the infamous bits/stdc++.h
header file with Clang compiler in the same way as you would use any standard header file. Please give it a read.
Link to Medium Article
TLDR
Download the linked file. Go to /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1
and copy the downloaded file to that directory. You can start using #include <stdcpp.h>
in your projects instead of manually including all required header files.
Top comments (1)
bits
directory is for the implementation and it not supposed to be included by your end project.Xcode.app
directory. Whenever you upgrade, that directory will be overwritten anyway.#include
what you're supposed to include.This is simply bad advice.