Louis Dionne
5e45f3d0ff
Teach Hana how to forward declare reference_wrapper on Windows
2016-02-17 22:44:43 -05:00
Louis Dionne
df657441e1
[tutorial] Document that some containers can hold references
2016-02-17 22:44:43 -05:00
Louis Dionne
0fad2b915f
[lazy] Add support for reference_wrapper in make_lazy
2016-02-17 22:44:43 -05:00
Louis Dionne
e2f764f2f7
[optional] Add support for reference_wrapper in just()
2016-02-17 22:44:43 -05:00
Louis Dionne
ec3aff9576
[pair] Support reference_wrappers in make_pair
2016-02-17 22:44:43 -05:00
Louis Dionne
f5348c9be2
[tuple] Support reference_wrappers in make_tuple
2016-02-17 22:44:43 -05:00
Louis Dionne
ea309d5f79
[detail] Add detail::as_container_element to support reference_wrappers
2016-02-17 22:44:42 -05:00
Louis Dionne
27bba55f80
Merge branch 'pr/hash_map' into develop
...
Closes #223
v0.7.0
2016-02-16 16:09:33 -05:00
Louis Dionne
eaa4cd7f8e
[map] Reimplement hana::map using a hash table
2016-02-16 15:50:41 -05:00
Louis Dionne
3a2ad0b2b5
[Hashable] Improve documentation and tests
2016-02-16 15:24:23 -05:00
Jason Rice
da29858d1b
[hash] type-level hash for associative containers
...
- Hashable concept
- hash function
2016-02-16 15:24:23 -05:00
Louis Dionne
391543ac94
[benchmark] Disable find_if benchmarks for set and map
...
It makes very little sense to compare find_if for set and map with
find_if for linear data structures, since that is not the intended
use case for set and map. Until we have a better comparison of
associative data structures ready, I do not want to present this
data as it could be misleading.
2016-02-15 14:59:30 -05:00
Louis Dionne
c0520b68b9
[test] Add unit test to check for Github issue #234
...
The commit that actually fixes this issue is 7f7c7a19 , which adds an
embedding from `char` to any integral type with the proper signedness.
Closes #234
2016-02-15 14:54:00 -05:00
Louis Dionne
e5e9c44825
[types] Add a fast contains function based on detail::any_of
2016-02-15 10:14:03 -05:00
Louis Dionne
ce03e0cc75
[detail] Add a fast any_of metafunction using SFINAE
2016-02-15 10:14:03 -05:00
Louis Dionne
357aeea527
[experimental] Add types<>, a Sequence specialized for holding types
2016-02-15 10:14:03 -05:00
Louis Dionne
b1696fe0cc
[Metafunction] Do not automatically call decltype_ on metafunction arguments
2016-02-15 10:07:08 -05:00
Louis Dionne
f6f02ac748
[README] Remove obsolete disclaimers
2016-02-14 17:52:53 -05:00
Louis Dionne
6e257fa7e1
[flatten] Extract the computation into unpack_flatten
2016-02-12 15:16:49 -05:00
Louis Dionne
18346fd8a1
[doc][value] Add note about value being an overloaded function
2016-02-12 12:42:19 -05:00
Louis Dionne
878b556fdf
[README] Use --depth=1 for cloning documentation
2016-02-11 14:14:40 -05:00
Louis Dionne
cce2becea1
Add index.html redirecting to doc/html/index.html at the root
...
I dislike this very much, but it is part of the Boost library
requirements.
2016-02-11 14:08:42 -05:00
Louis Dionne
7f7c7a19a9
[core] Add embedding from char to any integral type with proper signedness
2016-02-11 11:28:10 -05:00
Louis Dionne
31aa2e6f60
[core] Use signed keyword on signed integer types to define embeddings
2016-02-11 11:18:11 -05:00
Louis Dionne
30be9a677a
[core] Mark conversion from 'char' to 'short' as embedding
2016-02-11 10:42:35 -05:00
Louis Dionne
80b78deee1
[doc] Fix typos in integral_constant
2016-02-07 11:30:29 -05:00
Louis Dionne
15b5e32c7d
[tests] Modularize the unit tests for std::pair, std::tuple and std::ratio
2016-02-05 18:19:24 -05:00
Louis Dionne
75f6be09ce
Return references from at, at_key & friends
...
Resolves #90
2016-02-05 18:19:23 -05:00
Louis Dionne
da0c4975da
Use T const& instead of T&& for keys in find and at_key
...
Using T&& is pointless and it makes the code slightly more complex.
2016-02-05 18:19:23 -05:00
Louis Dionne
c6ca6497c4
[test] Rename test.tuple.get.* to test.tuple.at.*
2016-02-05 18:19:23 -05:00
Jason Rice
bae4dc1d8d
[documentation] operator documentation
2016-02-05 18:14:17 -05:00
Louis Dionne
23c3edc93b
[NFC] Un-Doxygenize comments in non-header files
2016-02-04 11:07:41 -05:00
Louis Dionne
c3a195bc18
[benchmarks] Reduce the size of map benchmarks to reduce CI timeouts
2016-02-02 09:44:02 -05:00
Louis Dionne
12939a0d70
[build] Satisfy the Boost library requirements for testing
2016-02-01 11:37:12 -05:00
Louis Dionne
91b7977df3
[map] Make the template parameters of hana::map implementation-defined
...
Also, use implementation_defined instead of implementation-defined
as a keyword in the documentation, since implementation-defined is
sometimes mis-rendered by Doxygen.
2016-01-31 15:05:18 -05:00
Louis Dionne
f0ea20f7e8
[map] Add a default constructor
...
Closes #197
2016-01-31 14:51:48 -05:00
Louis Dionne
8d1e56f513
[experimental] Clean up some files that belong better elsewhere or nowhere at all
2016-01-30 14:14:53 -05:00
Louis Dionne
b4578551db
[benchmarks] Add benchmarks for creating different maps
2016-01-29 13:07:02 -05:00
Louis Dionne
fdc6335c2e
[integer_sequence] Add unit tests and benchmarks for find_if
...
Initially, this commit was supposed to provide a slightly
optimized version of `find_if` for `integer_sequence`.
Unfortunately, benchmarking did not show any significant
difference, and so the current implementation will be kept.
Benchmark data is here: http://pastebin.com/t3M8YwzD
2016-01-29 13:04:33 -05:00
Louis Dionne
3d92428052
[tests] Split unit tests for integer_sequence
2016-01-29 12:46:29 -05:00
Louis Dionne
c642a9a78d
[CMake] Use -fdiagnostics-color when available
2016-01-28 12:54:29 -05:00
Louis Dionne
117c5047bf
[benchmarks] Remove old benchmarks that are not used anymore
2016-01-28 12:34:10 -05:00
Louis Dionne
870281f601
Exclude some files from the Boost-inspect report
...
- chart.html contains a link to external content, but that's OK.
- doc/header.html and doc/footer.html contain "invalid links" and
"invalid characters" because of $relpath^, which is understood by
Doxygen.
2016-01-28 12:28:50 -05:00
Louis Dionne
c8a886d649
[sort] Reimplement sort with a type-level insertion sort
2016-01-27 18:20:53 -05:00
Louis Dionne
65e1aa850f
Add benchmarks for the sort algorithm
2016-01-27 16:15:43 -05:00
Louis Dionne
bfbb9f826c
[sort] Make the requirements of the predicate more strict
2016-01-27 16:15:43 -05:00
Louis Dionne
b952e0dfee
[tests] Rename test/bugs directory to test/issues
2016-01-26 13:21:56 -05:00
Louis Dionne
67ec8b2867
[CMake] Add a pkg-config file
...
Closes #237
2016-01-26 12:02:41 -05:00
Louis Dionne
73c7ec7cb8
[CMake] Parse the version from <boost/hana/version.hpp>
2016-01-26 11:24:10 -05:00
Louis Dionne
a060ebab08
[CMake] Fix typo in FindHana.cmake
2016-01-26 10:43:27 -05:00