Worth unpacking the value too?  (I'm always nervous of std::pairs because there's no definition of the semantics of the contents - unpacking into named local variables in one place makes this more explicit.)