for such big templates write typedefs. use next rule: if you use template container more than once write typedef.
you can divide your declaration into several small declarations. for example:
typedef pair<boost::uint32_t, boost::uint32_t> values;
typedef map<boost::uint32_t, values > time_storage;
typedef map<boost::uint32_t, time_storage > type_storage;