Skip to content

Commit

Permalink
Move from the smd to the beman namespace
Browse files Browse the repository at this point in the history
Change filepaths to match new namespace.
  • Loading branch information
steve-downey committed May 26, 2024
1 parent 52eaca0 commit 4e71fd0
Show file tree
Hide file tree
Showing 13 changed files with 873 additions and 873 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
add_subdirectory(smd)
add_subdirectory(beman)
add_subdirectory(examples)
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions src/beman/optional/optional.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <beman/optional/optional.h>
24 changes: 12 additions & 12 deletions src/smd/optional/optional.h → src/beman/optional/optional.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// smd/optional/optional.h -*-C++-*-
#ifndef INCLUDED_SMD_OPTIONAL_OPTIONAL
#define INCLUDED_SMD_OPTIONAL_OPTIONAL
// beman/optional/optional.h -*-C++-*-
#ifndef INCLUDED_BEMAN_OPTIONAL_OPTIONAL
#define INCLUDED_BEMAN_OPTIONAL_OPTIONAL

/*
22.5.2 Header <optional> synopsis[optional.syn]
Expand Down Expand Up @@ -170,7 +170,7 @@ namespace std {
#include <type_traits>
#include <ranges>

namespace smd::optional {
namespace beman::optional {

class monostate {};

Expand Down Expand Up @@ -201,26 +201,26 @@ template <class T>
requires(!std::is_same_v<T, in_place_t>) && (!std::is_same_v<std::decay_t<T>, nullopt_t>)
class optional;

} // namespace smd::optional
} // namespace beman::optional
namespace std {
template <typename T>
inline constexpr bool ranges::enable_view<smd::optional::optional<T>> = true;
inline constexpr bool ranges::enable_view<beman::optional::optional<T>> = true;

template <typename T>
inline constexpr bool ranges::enable_view<smd::optional::optional<T&>> = true;
inline constexpr bool ranges::enable_view<beman::optional::optional<T&>> = true;

template <typename T>
inline constexpr bool ranges::enable_borrowed_range<smd::optional::optional<T*>> = true;
inline constexpr bool ranges::enable_borrowed_range<beman::optional::optional<T*>> = true;

template <typename T>
inline constexpr bool ranges::enable_borrowed_range<smd::optional::optional<std::reference_wrapper<T>>> = true;
inline constexpr bool ranges::enable_borrowed_range<beman::optional::optional<std::reference_wrapper<T>>> = true;

template <typename T>
inline constexpr bool ranges::enable_borrowed_range<smd::optional::optional<T&>> = true;
inline constexpr bool ranges::enable_borrowed_range<beman::optional::optional<T&>> = true;

} // namespace std

namespace smd::optional {
namespace beman::optional {
template <class T>
concept is_derived_from_optional = requires(const T& t) { []<class U>(const optional<U>&) {}(t); };

Expand Down Expand Up @@ -1152,5 +1152,5 @@ class optional<T&> {
constexpr std::reverse_iterator<const T*> crbegin() const noexcept { return rbegin(); }
constexpr std::reverse_iterator<const T*> crend() const noexcept { return rend(); }
};
} // namespace smd::optional
} // namespace beman::optional
#endif
Loading

0 comments on commit 4e71fd0

Please sign in to comment.