Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

GMoss

@GMoss
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • STL list sort() limit
    G GMoss

    Hi, Can anyone tell me if there is a limit of 2^15 (32768) items that can be sorted in a list using the list function sort()? I am trying the following code in Visual C++ 6 on Windows 2000. std::list TestList; for (int i=0; i<40000; i++) TestList.push_back(i); int nSize = TestList.size(); test.sort(); int nSize2 = TestList.size(); nSize is 40000. nSize2 is 7232. The difference between the two values is always 32768. Less than 32768 values sorts fine. NOTE: max_size() returns a value of > 100000000. I could not find any information that mentions this limit but it is clearly there. Can anyone suggest an alternative?

    ATL / WTL / STL c++ css question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups