Created
July 30, 2017 13:14
-
-
Save odeblic/0e78b7eabfe1afec406e902e9e5095ac to your computer and use it in GitHub Desktop.
To be tested...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <list> | |
#include <forward_list> | |
#include <vector> | |
#include <map> | |
#include <unordered_map> | |
#include <set> | |
#include <deque> | |
#define PRINT(X) std::cout << #X " -> " << sizeof(X) << std::endl; | |
int main() | |
{ | |
PRINT(std::list<char>); | |
PRINT(std::forward_list<char>); | |
PRINT(std::vector<char>); | |
typedef std::map<int, char> map; | |
PRINT(map); | |
typedef std::unordered_map<int, int> unordered_map; | |
PRINT(unordered_map); | |
PRINT(std::set<char>); | |
PRINT(std::deque<char>); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment