From d1dcc4d8cdc36520dcc6cda4ad02eca8607f7b79 Mon Sep 17 00:00:00 2001 From: Mikhail Svetkin Date: Tue, 29 May 2018 14:13:59 +0200 Subject: corelib/tools: add qMakeArray() API This function can be used to create std::array without the need to explicitly provide the size of array. It also has a specialization that allow to generate sorted array at compile time. Sorted array can be beneficial for example in binary search. Change-Id: Ifc7e06e451812fce2ab94293959db5e9cc038793 Reviewed-by: Gatis Paeglis --- src/corelib/tools/tools.pri | 1 + 1 file changed, 1 insertion(+) (limited to 'src/corelib/tools/tools.pri') diff --git a/src/corelib/tools/tools.pri b/src/corelib/tools/tools.pri index 4f2d3dd4a3..7a74dfda3e 100644 --- a/src/corelib/tools/tools.pri +++ b/src/corelib/tools/tools.pri @@ -34,6 +34,7 @@ HEADERS += \ tools/qlocale_p.h \ tools/qlocale_tools_p.h \ tools/qlocale_data_p.h \ + tools/qmakearray_p.h \ tools/qmap.h \ tools/qmargins.h \ tools/qmessageauthenticationcode.h \ -- cgit v1.2.3