vector<pair<int, int>> polygon = ... pair<pair<int, int>, pair<int, int>> bounding_box = GetBoundingBox(polygon); int area = (bounding_box.second.first - bounding_box.first.first) * (bounding_box.second.second - bounding_box.first.second);
pair
first
second
Polygon polygon = ... int area = polygon.GetBoundingBox().GetArea();
map<UserId, string> id_to_name; map<UserId, int> id_to_age;
map<UserId, Person> id_to_person;
person_data[kName] = "Foo";
person.SetName("Foo");
Date
GetMonth
string date = "01-02-03";
Date date(Month::Feb, Day(1), Year(2003));
int timeout_secs = 5;
Duration timeout = Seconds(5);