diff --git a/examples/asynchronous_sleep.cpp b/examples/asynchronous_sleep.cpp index 6e35acfd..4973e4a2 100644 --- a/examples/asynchronous_sleep.cpp +++ b/examples/asynchronous_sleep.cpp @@ -1,3 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include #include diff --git a/examples/synchronous_sleep.cpp b/examples/synchronous_sleep.cpp index db8daf0d..543b5940 100644 --- a/examples/synchronous_sleep.cpp +++ b/examples/synchronous_sleep.cpp @@ -1,3 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include #include diff --git a/include/unifex/async_auto_reset_event.hpp b/include/unifex/async_auto_reset_event.hpp index a342634b..f73c2130 100644 --- a/include/unifex/async_auto_reset_event.hpp +++ b/include/unifex/async_auto_reset_event.hpp @@ -1,4 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #pragma once @@ -140,7 +154,8 @@ struct async_auto_reset_event::stream_view final { typename stop_token_t::template callback_type< decltype(stopCallback)>; - return std::optional{std::in_place, stopToken, stopCallback}; + return std::optional{ + std::in_place, stopToken, stopCallback}; }, [evt](auto& stopCallback) noexcept { return unifex::let_value( diff --git a/include/unifex/cleanup_adapt_stream.hpp b/include/unifex/cleanup_adapt_stream.hpp index 0bfcb24c..59466e9b 100644 --- a/include/unifex/cleanup_adapt_stream.hpp +++ b/include/unifex/cleanup_adapt_stream.hpp @@ -1,4 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #pragma once @@ -45,7 +59,7 @@ inline constexpr struct _fn final { std::is_nothrow_constructible_v, Stream>&& std::is_nothrow_constructible_v, AdaptFunc>) { return _cleanup_adapt::stream{ - (Stream &&) stream, (AdaptFunc &&) adapt}; + (Stream&&)stream, (AdaptFunc&&)adapt}; } } cleanup_adapt_stream{}; } // namespace _cleanup_adapt_cpo diff --git a/include/unifex/upon_done.hpp b/include/unifex/upon_done.hpp index bae13ba4..eb7c1c5e 100644 --- a/include/unifex/upon_done.hpp +++ b/include/unifex/upon_done.hpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include @@ -184,7 +200,7 @@ struct _sender::type { member_t, receiver_t>>) // friend auto tag_invoke(tag_t, Sender&& s, Receiver&& r) noexcept( - std::is_nothrow_constructible_v, Receiver> && + std::is_nothrow_constructible_v, Receiver> && std::is_nothrow_constructible_v> && is_nothrow_connectable_v< member_t, diff --git a/include/unifex/upon_error.hpp b/include/unifex/upon_error.hpp index b061a6cd..6aad5427 100644 --- a/include/unifex/upon_error.hpp +++ b/include/unifex/upon_error.hpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include @@ -164,7 +180,7 @@ struct _sender::type { member_t, receiver_t>>) // friend auto tag_invoke(tag_t, Sender&& s, Receiver&& r) noexcept( - std::is_nothrow_constructible_v, Receiver> && + std::is_nothrow_constructible_v, Receiver> && std::is_nothrow_constructible_v> && is_nothrow_connectable_v< member_t, diff --git a/source/async_auto_reset_event.cpp b/source/async_auto_reset_event.cpp index b9b68c28..66eddc5c 100644 --- a/source/async_auto_reset_event.cpp +++ b/source/async_auto_reset_event.cpp @@ -1,4 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include diff --git a/test/async_auto_reset_event_test.cpp b/test/async_auto_reset_event_test.cpp index 3c14b0df..6007cca1 100644 --- a/test/async_auto_reset_event_test.cpp +++ b/test/async_auto_reset_event_test.cpp @@ -1,4 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include diff --git a/test/detach_on_cancel_test.cpp b/test/detach_on_cancel_test.cpp index 4e0bc83b..9da9d7a1 100644 --- a/test/detach_on_cancel_test.cpp +++ b/test/detach_on_cancel_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include #include diff --git a/test/filter_stream_test.cpp b/test/filter_stream_test.cpp index 1110a994..3fc75c6e 100644 --- a/test/filter_stream_test.cpp +++ b/test/filter_stream_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/test/type_list_test.cpp b/test/type_list_test.cpp index 6ce2ad0e..93e58e30 100644 --- a/test/type_list_test.cpp +++ b/test/type_list_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include using namespace unifex; diff --git a/test/upon_done_test.cpp b/test/upon_done_test.cpp index 167018a9..02b13d99 100644 --- a/test/upon_done_test.cpp +++ b/test/upon_done_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/test/upon_error_test.cpp b/test/upon_error_test.cpp index 1d550016..ac9e1e66 100644 --- a/test/upon_error_test.cpp +++ b/test/upon_error_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/test/when_all_range_test.cpp b/test/when_all_range_test.cpp index 011d81f1..43c98681 100644 --- a/test/when_all_range_test.cpp +++ b/test/when_all_range_test.cpp @@ -1,4 +1,18 @@ -// (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary. +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include