Skip to content

Instantly share code, notes, and snippets.

@odeblic
Created July 30, 2017 13:14
Show Gist options
  • Save odeblic/0e78b7eabfe1afec406e902e9e5095ac to your computer and use it in GitHub Desktop.
Save odeblic/0e78b7eabfe1afec406e902e9e5095ac to your computer and use it in GitHub Desktop.
To be tested...
#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