[Home]BoostCon 2007/Container Printing Lib - Thursday Notes

BOOST WIKI | BoostCon 2007 | RecentChanges | Preferences | Page List | Links List

No diff available--this is the first major revision. (minor diff, author diff)
Issue with multi-depth container printing

The basic concept we need is to tie a particular format to each level

Ideas

  ostream &operator<<(ostream &os, vector<T> const &vi)
  {
    print(vi, os);
    return os;
 } 

  std::vector<int> vi;
  std::cout << format('[', ',", "]") << vi << 

  std::cout << format[vi]( "[ ", ", " ]" )
                         ( "( ", ", " )" )


BOOST WIKI | BoostCon 2007 | RecentChanges | Preferences | Page List | Links List
Edit text of this page | View other revisions
Last edited May 17, 2007 4:46 pm (diff)
Search:
Disclaimer: This site not officially maintained by Boost Developers