src/basics.h

changeset 313
c24d87f64bed
parent 309
d862721d19a3
child 333
07e65a4c6611
equal deleted inserted replaced
312:2637134bc37c 313:c24d87f64bed
41 #include "src/geometry.h" 41 #include "src/geometry.h"
42 #include "src/typeconversions.h" 42 #include "src/typeconversions.h"
43 43
44 template<typename T> 44 template<typename T>
45 using opt = std::optional<T>; 45 using opt = std::optional<T>;
46 using std::chrono::steady_clock;
46 47
47 //! \brief Return type of qHash. unsigned int on Qt5, unsigned long on Qt6. 48 //! \brief Return type of qHash. unsigned int on Qt5, unsigned long on Qt6.
48 using hash_t = decltype(qHash(0)); 49 using hash_t = decltype(qHash(0));
49 50
50 //! \brief Index type of QVector, int on Qt5, qsizetype on Qt6 51 //! \brief Index type of QVector, int on Qt5, qsizetype on Qt6

mercurial