Skip to content

Commit

Permalink
Beginning feature changes for Core 2.0
Browse files Browse the repository at this point in the history
 * Removed a BUNCH of garbage and unnecessary declarations
 * Removed biicode (RIP)
 * Rewrote meta component (IT MAKES MORE SENSE NOW)
 * Added propagate_const
 * Added memory_resource (well, parts of it)
 * Fixed several build script issues
  • Loading branch information
bruxisma committed Sep 15, 2015
1 parent e1d1dd7 commit 5a0157b
Show file tree
Hide file tree
Showing 41 changed files with 3,437 additions and 2,710 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Expand Up @@ -8,6 +8,8 @@ include(CMakePackageConfigHelpers)
include(CMakeDependentOption)
include(CTest)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(INCLUDE_INSTALL_DIR "include" CACHE INTERNAL "Header Files")
set(CMAKE_INSTALL_DIR "share/cmake/core" CACHE INTERNAL "CMake Files")
set(DOCS_INSTALL_DIR "share/doc/mnmlstc/core" CACHE INTERNAL "Documentation")
Expand Down Expand Up @@ -37,6 +39,7 @@ cmake_dependent_option(BUILD_PACKAGE_MSI "Create an MSI" ON "${MSI_DEP}" OFF)
cmake_dependent_option(BUILD_PACKAGE_RPM "Create an RPM" ON "${RPM_DEP}" OFF)
cmake_dependent_option(BUILD_PACKAGE_PKG "Create a PKG" ON "${PKG_DEP}" OFF)
cmake_dependent_option(BUILD_WITH_LIBCXX "Use libc++" OFF "BUILD_TESTING" OFF)
cmake_dependent_option(BUILD_WITH_COVERAGE "Use GCov" OFF "BUILD_TESTING" OFF)

if (BIICODE)
add_biicode_targets()
Expand Down
18 changes: 0 additions & 18 deletions biicode.conf

This file was deleted.

22 changes: 21 additions & 1 deletion docs/algorithm.rst
@@ -1,6 +1,8 @@
Algorithm Component
===================

.. index:: algorithm

The algorithm component can be seen as a competitor to the Boost.Range
algorithm headers. There are a few small differences (namely that this
component relies on the :doc:`range`), however these differences are discussed
Expand Down Expand Up @@ -38,6 +40,8 @@ breaking the current ABI.

.. _core-algorithm-component-non-modifying-sequence-operations:

.. index:: algorithm; non-range

Non-Range Based Operations
--------------------------

Expand Down Expand Up @@ -97,6 +101,8 @@ Non-Range Based Operations
The default :samp:`{Compare}` and :samp:`{Difference}` functions are
:cxx:`operator <` and :cxx:`operator -` respectively

.. index:: algorithm; non-modifying

Non-Modifying Sequence Operations
---------------------------------

Expand Down Expand Up @@ -190,7 +196,7 @@ Non-Modifying Sequence Operations
int count = 3;
auto function = [&] (int v) { count -= v; };
auto predicate = [&] (int) { return count; };
for_each(numbers, function, predicate);
for_each_while(numbers, function, predicate);
.. function:: InputIt for_each_until ( \
Range&& r, \
Expand Down Expand Up @@ -366,6 +372,8 @@ Non-Modifying Sequence Operations

.. _core-alglorithm-component-modifying-sequence-operations:

.. index:: algorithm; modifying

Modifying Sequence Operations
-----------------------------

Expand Down Expand Up @@ -606,6 +614,8 @@ Modifying Sequence Operations

.. _core-algorithm-component-partitioning-operations:

.. index:: algorithm; partitioning

Partitioning Operations
-----------------------

Expand Down Expand Up @@ -659,6 +669,8 @@ Partitioning Operations

.. _core-algorithm-component-sorting-operations:

.. index:: algorithm; sorting

Sorting Operations
------------------

Expand Down Expand Up @@ -741,6 +753,8 @@ Sorting Operations

.. _core-algorithm-component-binary-search-operations:

.. index:: algorithm; binary search

Binary Search Operations
------------------------

Expand Down Expand Up @@ -798,6 +812,8 @@ Binary Search Operations

.. _core-algorithm-component-set-operations:

.. index:: algorithm; set

Set Operations
--------------

Expand Down Expand Up @@ -940,6 +956,8 @@ Set Operations

.. _core-algorithm-component-heap-operations:

.. index:: algorithm; heap

Heap Operations
---------------

Expand Down Expand Up @@ -996,6 +1014,8 @@ Heap Operations

.. _core-algorithm-component-min-max-operations:

.. index:: algorithm; min/max

Min/Max Operations
------------------

Expand Down
14 changes: 0 additions & 14 deletions docs/any.rst
Expand Up @@ -17,7 +17,6 @@ This component is unavailable if :c:macro:`CORE_NO_RTTI` is defined.
single: any; bad_any_cast
single: exceptions; bad_any_cast


.. class:: bad_any_cast

:inherits: std::bad_cast
Expand All @@ -42,15 +41,6 @@ This component is unavailable if :c:macro:`CORE_NO_RTTI` is defined.
any (any&&) noexcept
any () noexcept

.. versionadded:: 1.2

The behavior regarding the move constructor has changed to follow
the specification. It will now construct a value of the same type
as contained in the incoming :any:`any` and use the move constructor
of the type. If the incoming :any:`any` is empty, the newly
constructed :any:`any` will be as well. Before 1.2, the move
constructor would simply result in a state change.

The default set of constructors work as one might imagine. The copy
constructor is not marked as noexcept as the underlying type *may*
throw an exception, and due to the type erasure performed, the :any:`any`
Expand All @@ -77,10 +67,6 @@ This component is unavailable if :c:macro:`CORE_NO_RTTI` is defined.
Assigns *value* to :cxx:`*this`. If :cxx:`*this` already manages a
contained object, it will be destroyed after *value* is assigned.

.. versionadded:: 1.1

This function was unfortunately omitted from the 1.0 release.

.. function:: void swap (any&) noexcept

Performs a simple state change with the incoming :any:`any`.
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -5,8 +5,8 @@
project = 'MNMLSTC Core'
copyright = 'MNMLSTC'

version = '1.2'
release = '1.2'
version = '2.0'
release = '2.0'

needs_sphinx = '1.3'

Expand Down

0 comments on commit 5a0157b

Please sign in to comment.