https://www.copperspice.com/docs/cs_api/class_qstring8.html#ae2e2be78a3e7905da42c751866b73c1b
Member Typedef Documentation
Does not declare the header file where size_type (or the others) are declared. If one puts just the QString header file in their source code because they are writing utility functions, not classes, you don't get the typedef. Probably because it isn't a typedef anymore? It certainly doesn't appear to be consistently defined across the framework.
Code: Select all
roland@roland-HP-Z2-SFF-G4-Workstation:/usr/include/copperspice$ grep -irn size_type * | grep -i typedef
QtCore/qvarlengtharray.h:46: typedef int size_type;
QtCore/regex/regex_raw_buffer.h:97: typedef std::size_t size_type;
QtCore/regex/r_object_cache.h:47: typedef typename list_type::size_type size_type;
QtCore/regex/r_object_cache.h:73: typedef typename map_type::size_type map_size_type;
QtCore/qcontiguouscache.h:85: typedef int size_type;
roland@roland-HP-Z2-SFF-G4-Workstation:/usr/include/copperspice$
roland@roland-HP-Z2-SFF-G4-Workstation:/usr/include/copperspice$
roland@roland-HP-Z2-SFF-G4-Workstation:/usr/include/copperspice$ grep -irn size_type * | grep -i using
QtCore/cs_rcu_list.h:56: using size_type = std::ptrdiff_t;
QtCore/qstring8.h:216: using size_type = std::ptrdiff_t;
QtCore/qhash.h:55: using size_type = typename std::unordered_map<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/qhash.h:139: using size_type = typename std::unordered_map<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/qhash.h:231: using size_type = typename std::unordered_map<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/cs_string_view.h:38: using size_type = typename S::difference_type;
QtCore/qmultimap.h:53: using size_type = typename std::multimap<Key, Val, C>::difference_type;
QtCore/qmultimap.h:147: using size_type = typename std::multimap<Key, Val, C>::difference_type;
QtCore/qmultimap.h:247: using size_type = typename std::multimap<Key, Val, C>::difference_type; // signed instead of unsigned
QtCore/qmap.h:53: using size_type = typename std::map<Key, Val, C>::difference_type;
QtCore/qmap.h:146: using size_type = typename std::map<Key, Val, C>::difference_type;
QtCore/qmap.h:246: using size_type = typename std::map<Key, Val, C>::difference_type; // signed instead of unsigned
QtCore/qfuture.h:141: using size_type = difference_type;
QtCore/qlist.h:56: using size_type = typename std::deque<T>::difference_type; // makes this signed instead of unsigned
QtCore/qlinkedlist.h:46: using size_type = typename std::list<T>::difference_type; // makes this signed instead of unsigned
QtCore/qflatmap.h:56: using size_type = typename std::vector<std::pair<Key, Val>>::difference_type;
QtCore/qflatmap.h:150: using size_type = typename std::vector<std::pair<Key, Val>>::difference_type;
QtCore/qflatmap.h:268: using size_type = typename std::vector<std::pair<Key, Val>>::difference_type; // signed instead of unsigned
QtCore/qjsonarray.h:42: using size_type = QVector<QJsonValue>::size_type;
QtCore/cs_string.h:53: using size_type = std::ptrdiff_t;
QtCore/qmultihash.h:55: using size_type = typename std::unordered_multimap<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/qmultihash.h:139: using size_type = typename std::unordered_multimap<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/qmultihash.h:230: using size_type = typename std::unordered_multimap<Key, Val, Hash, KeyEqual>::difference_type;
QtCore/regex/basic_regex.h:214: using size_type = std::size_t;
QtCore/regex/basic_regex.h:318: using traits_size_type = typename string_type::size_type;
QtCore/regex/basic_regex.h:330: using size_type = std::size_t;
QtCore/regex/perl_matcher.h:393: using traits_size_type = std::size_t;
QtCore/regex/match_results.h:57: using size_type = typename vector_type::size_type;
QtCore/qvector.h:46: using size_type = typename std::vector<T>::difference_type; // makes this signed instead of unsigned
QtCore/qstack.h:37: using size_type = typename QVector<T>::difference_type;
QtCore/cs_string_iterator.h:53: using size_type = std::ptrdiff_t;
QtCore/cs_encoding.h:32: using size_type = std::ptrdiff_t;
QtCore/cs_encoding.h:212: using size_type = std::ptrdiff_t;
QtCore/qjsonobject.h:46: using size_type = QFlatMap<QString, QJsonValue>::size_type;
QtCore/qstringview.h:49: using size_type = typename S::difference_type;
QtCore/qstring16.h:216: using size_type = std::ptrdiff_t;
QtCore/qset.h:53: using size_type = typename std::unordered_set<T, Hash>::difference_type; // makes this signed instead of unsigned
QtGui/qtreewidgetitemiterator.h:69: using size_type = std::ptrdiff_t;
QtWebKit/qwebelement.h:186: using size_type = int;
roland@roland-HP-Z2-SFF-G4-Workstation:/usr/include/copperspice$
Thanks,