Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9c1ff73b
Kaydet (Commit)
9c1ff73b
authored
May 06, 2015
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use o3tl::project2nd
Change-Id: I636453e8cab09ec5021acd2bb1f2937f1402dccc
üst
e449308e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
accessortraits.hxx
include/basebmp/accessortraits.hxx
+3
-1
metafunctions.hxx
include/basebmp/metafunctions.hxx
+0
-9
No files found.
include/basebmp/accessortraits.hxx
Dosyayı görüntüle @
9c1ff73b
...
...
@@ -24,6 +24,8 @@
#include <basebmp/accessoradapters.hxx>
#include <basebmp/metafunctions.hxx>
#include <o3tl/compat_functional.hxx>
#include <functional>
namespace
basebmp
...
...
@@ -82,7 +84,7 @@ template< class Accessor > struct AccessorTraits
typedef
typename
Accessor
::
value_type
value_type
;
/// Retrieve stand-alone color lookup function for given Accessor type
typedef
project2nd
<
Accessor
,
value_type
>
color_lookup
;
typedef
o3tl
::
project2nd
<
Accessor
,
value_type
>
color_lookup
;
/// Retrieve raw pixel data accessor for given Accessor type
typedef
Accessor
raw_accessor
;
...
...
include/basebmp/metafunctions.hxx
Dosyayı görüntüle @
9c1ff73b
...
...
@@ -210,15 +210,6 @@ template< typename T > inline T shiftRight( T v, int shift )
return
shift
>
0
?
v
>>
shift
:
v
<<
(
-
shift
);
}
/// Replace non-std project2nd from SGI extensions
template
<
typename
T1
,
typename
T2
>
struct
project2nd
:
public
std
::
binary_function
<
T1
,
T2
,
T2
>
{
T2
operator
()
(
const
T1
&
,
const
T2
&
v
)
const
{
return
v
;
}
};
}
// namespace basebmp
#endif
/* INCLUDED_BASEBMP_METAFUNCTIONS_HXX */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment